Is it possible to debug Godot projects using Visual Studio Code’s debugger? It seems that the official plugin for VS Code and Godot is no longer maintained, and the docs do not explain the process of getting this to work.
It’s quite difficult to debug projects without a debugger, so I’d really like to somehow get this working.
I found out that the VS Studio Code Godot plugin is deprecated, so I disabled it. I was told that you should be able to debug with VS Code’s default features, but I’ve not been able to do so. Trying to run it gives me the error “No C# project is currently loaded. Please create a C# project in order to debug.,” even though I’ve got a csproj solution in my project.
I’m kind of at the end of my rope here so any help is appreciated.
I also highly recommend this github repository, which includes a .vscode subfolder with proper setting files. Besides installing the plugins above, this is the only thing needed to successfully run and debug your Godot C# projects:
I quit using Godot due to the lack of a functional debugger but just picked it back up again in hopes that someone had fixed the problem. I followed the instructions in your link but they did not work - attempting to run the project simply does nothing.
I can only conclude that Godot is incompatible with any manner of C# debugging tools.
I agree that setting this up is very unintuitive and frustrating but following @3dwizard example helped me to set my VS Code up to debug my project, for reference I’m using Godot v4.4-beta.1