Thanks, it works.
If you are using rider with riderlink plugin installed and live-coding being enable, you will have to click the “Run/Debug” button, the triangle one or the bug in rider to run unreal editor.
Then you can use live-coding or debug c++ code in rider. It’s a little bit complicated though.