How to enable debugging in Visual Studio when compiling Godot Editor?

Godot Version

v4.3.beta.custom_build [b97110cd3]


I’m analyzing the Godot source code to try and narrow down a bug. I’d like to set a breakpoint in VisualStudio so that I can check the stack trace, but this is failing because either no symbols are being generated or they’re not being loaded. When I launch Godot Editor and hover over the break point, I get the message the breakpoint will not currently be hit. no symbols have been loaded for this document.

I’ve pulled the latest source and a compiling for editor and x64.

What do I need to do to be able to run Godot Editor from VisualStudio with debugging enabled?

1 Like

Did you do a debug build? If not, does that fix your issue?

I tried doing a template_debug build, but that throws a low level error when the editor launches. Is there some special set up for doing a debug build?

The message is

Error: Couldn't load project data at path ".".  Is the .pck file missing?
If you've renamed the executable, the associated .pck file should also be renamed to match the executable's name(without the extension).