{ "version": "0.2.0", "configurations": [ // For these launch configurations to work, you need to setup a GODOT // environment variable. On mac or linux, this can be done by adding // the following to your .zshrc, .bashrc, or .bash_profile file: // export GODOT="/Applications/Godot.app/Contents/MacOS/Godot" { "name": "๐Ÿ•น Debug Game", "type": "coreclr", "request": "launch", "preLaunchTask": "build-without-tests", "program": "${env:GODOT}", "args": [], "cwd": "${workspaceFolder}", "stopAtEntry": false, "console": "integratedTerminal" }, { "name": "๐Ÿ•น Debug Game (VSCodium)", "type": "coreclr", "request": "launch", "preLaunchTask": "build-without-tests", "program": "", "internalConsoleOptions": "openOnSessionStart", "pipeTransport": { "debuggerPath": "${extensionInstallFolder:muhammad-sammy.csharp}/.debugger/netcoredbg/netcoredbg", "pipeCwd": "${workspaceFolder}", "pipeProgram": "${env:GODOT}", "pipeArgs": [ "--debug" ] }, "osx": { "pipeTransport": { // netcoredbg for Apple Silicon isn't included with the VSCodium C# // extension. You must clone it, build it, and setup the path to it. // You'll need homebrew, cmake, and clang installed. // // --------------------------------------------------------------- // // // git clone https://github.com/Samsung/netcoredbg.git // cd netcoredbg // mkdir build // cd build // CC=clang CXX=clang++ cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../bin // // In your ~/.zshrc file, add the following line and adjust the path: // // export NETCOREDBG="/path/to/netcoredbg/bin/netcoredbg" // "debuggerPath": "${env:NETCOREDBG}", "pipeCwd": "${workspaceFolder}", "pipeProgram": "${env:GODOT}", "pipeArgs": [ "--debug" ] } }, }, // Debug the scene that matches the name of the currently open *.cs file // (if there's a scene with the same name in the same directory). { "name": "๐ŸŽญ Debug Current Scene", "type": "coreclr", "request": "launch", "preLaunchTask": "build-without-tests", "program": "${env:GODOT}", "args": [ "${fileDirname}/${fileBasenameNoExtension}.tscn" ], "cwd": "${workspaceFolder}", "stopAtEntry": false, "console": "integratedTerminal" }, { "name": "๐Ÿงช Debug Tests", "type": "coreclr", "request": "launch", "preLaunchTask": "build", "program": "${env:GODOT}", "args": [ // These command line flags are used by GoDotTest to run tests. "--run-tests", "--quit-on-finish" ], "cwd": "${workspaceFolder}", "stopAtEntry": false, "console": "integratedTerminal" }, { "name": "๐Ÿ”ฌ Debug Current Test", "type": "coreclr", "request": "launch", "preLaunchTask": "build", "program": "${env:GODOT}", "args": [ // These command line flags are used by GoDotTest to run tests. "--run-tests=${fileBasenameNoExtension}", "--quit-on-finish" ], "cwd": "${workspaceFolder}", "stopAtEntry": false, "console": "integratedTerminal" }, ] }