init
This commit is contained in:
107
.vscode/launch.json
vendored
Normal file
107
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"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"
|
||||
},
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user