Search code examples
c#debuggingbreakpointsgodotrider

Debugging Godot game with Rider C#


I've recently started using Godot and want to use Rider to debug my game. I have the Godot Support plugin in Rider for C#, and it seems to be working for the most part. I have the debug symbol in the top right that causes the app to launch in debug mode. However, breakpoints are not being hit/generated. When I hover over the breakpoint, this is what I see: enter image description here

I've searched online and I've found almost nothing about this. The only two things that I found mentioning this were for Unity and were unsolved. Has anyone else experienced this?

I feel like it's likely something simple that I just overlooked. I'd appreciate anyone's help.


Solution

  • After removing and reinstalling the Godot Support plugin, I discovered what my problem was. My configurations were incorrect. Somehow the first time I installed the Godot Support plugin it gave me the below configuration. enter image description here Note: The working directory wasn't actually set in the configuration at first. Not knowing where it needed to be set, I just set it to what you see above, which was very wrong now that I see what it was supposed to be.

    After reinstalling the plugin, a new configuration was created that looked like this: enter image description here

    I am not sure how the first one got so screwed up, but after the reinstall, breakpoints are being hit.