-
Notifications
You must be signed in to change notification settings - Fork 17
/
launch.json
107 lines (107 loc) · 3.38 KB
/
launch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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 (VSCodium)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"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"
]
}
},
},
{
"name": "🕹 Debug Game",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${env:GODOT}",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "integratedTerminal"
},
// 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",
"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"
},
]
}