For anyone trying to use Visual Studio Code for debugging C# with Godot, the following Launch and Task setups will allow breakpoints to work:
Launch.JSON
{
"version": "2.0.0",
"configurations": [
{
"name": "Launch",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "EXECUTEABLE FILE GOES HERE",
// See which arguments are available here:
// https://docs.godotengine.org/en/stable/getting_started/editor/command_line_tutorial.html
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
}
]
}
Tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build"
],
"problemMatcher": "$msCompile",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
}
]
}
I found this here:
https://www.reddit.com/r/GodotCSharp/comments/1c1qy6m/debug_project_from_godot_engine_from_vscode/