Skip to content

Instantly share code, notes, and snippets.

@leonardoraele
Last active January 8, 2024 20:08
Show Gist options
  • Save leonardoraele/72ac9773feb8ef996730d685e2c088c4 to your computer and use it in GitHub Desktop.
Save leonardoraele/72ac9773feb8ef996730d685e2c088c4 to your computer and use it in GitHub Desktop.
My .vscode/launch.json for debugging Godot projects
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${env:GODOT4}",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false,
"args": [
"--path",
"${workspaceRoot}"
]
},
{
"name": "Launch (Select Scene)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${env:GODOT4}",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false,
"args": [
"--path",
"${workspaceRoot}",
"${command:godot.csharp.getLaunchScene}"
]
},
{
"name": "Launch Editor",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${env:GODOT4}",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false,
"args": [
"--path",
"${workspaceRoot}",
"--editor"
]
},
{
"name": "Attach to Process",
"type": "coreclr",
"request": "attach"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "shell",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment