For debugging, foremost you must:
-
Build the extension with a dev preset (dev-only debugging code plus debug symbols):
cmake --preset windows-x64-editor-dev cmake --build --preset windows-x64-editor-dev
-
Attach a debugger to Godot:
-
For VSCode this has been mostly setup for you, in
.vscode/launch.jsonjust setconfiguration.programto your Godot binary path. -
For Visual Studio: TODO
-
-
Run the task with the debugger attached.