How to debug Lyra project with vs or rider?

Tried and tested methods

  1. I first use rider to build Lyra project with debug game in editor
    1.1 Then i set break point in ULyraHeroComponent construct function, but IDE tips No doucment symbol load, so the break point was never hit

  2. I switch to vs 2022, and reinstall Lyra project,I use ctrl+alt+f11 to build. but failed , everytime i build the failed result not same
    2.2 Then i close UE Editor, Later, I use vs to build Lyra project - it seems success.
    2.3 Reopen UE Editor and attach editor process, run game,samely as 1.1 the break point never hit…whatever i do in editor, the point never hit.
    2.4 VS tips No doucment symbol load, so the break point was never hit

Finally, How do i fix this error?
Thanks

  1. Close UE5 live code
  2. Reopen UE5
  3. Build Project with config Debug Game in Editor
  4. When 3. done. USE IDE Debug Button To Start Game

other

  1. create unrealEngine.exe shrot cut
  2. add -Win64 -DebugGame argument
  3. Use shorcut startup UE5