How to debug C# Tool/Editor plug-in using VS 2019/2022?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MSViking

Hello,

I’ve just recently started looking into writing Editor plug-ins for Godot (mono version on Windows) and are having difficulties getting a single breakpoint triggering.

Is there any up-to-date guide that works nowadays?
I’ve tried a few for Visual Studio and Visual Code, but none of them have been useful so far. Godot settings (editor and compiler) are correctly setup, the plug-in structure is fine, loads up nicely in the editor, button works, debug text works, but still no breakpoints.

VS code with C#, Godot tools and launcher JSON file manages to break on scripts that are hooked up to the scene, but not in Tool/Editor scripts.

VS2022 (with Godot plug-in) fails to break when attaching the plug-in project to Godot, when setting the breakpoint VS states “no symbols”. After following a guide I managed, by patching a project file, to get “play in editor” button in the toolbar, but nothing happens when it is pressed.

Some guides refers to scon and source code, executing any scon command results in some configuration error in scons/scripts/main.py (No SConstruct file found).

If you could guide me in the right direction, it would be great!

Best