Skip to content

Commit 937e649

Browse files
authored
Merge pull request #728 from tophyr/pr/add-vscode-debug-launch
Add VSCode Debug Launch Configurations
2 parents 566242d + 8dd35ef commit 937e649

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.vscode/launch.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug (MSVC)",
6+
"type": "cppvsdbg",
7+
"request": "launch",
8+
"program": "${command:cmake.launchTargetPath}",
9+
"cwd": "${workspaceFolder}",
10+
"args": [
11+
"-setdir", "${workspaceFolder}",
12+
"-additionaldir", "${env:D3_GAMEDATA_DIR}",
13+
"-additionaldir", "${command:cmake.launchTargetDirectory}"
14+
]
15+
},
16+
{
17+
"name": "Debug (gdb/lldb)",
18+
"type": "cppdbg",
19+
"request": "launch",
20+
"program": "${command:cmake.launchTargetPath}",
21+
"cwd": "${workspaceFolder}",
22+
"MIMode": "gdb",
23+
"args": [
24+
"-setdir", "${workspaceFolder}",
25+
"-additionaldir", "${env:D3_GAMEDATA_DIR}",
26+
"-additionaldir", "${command:cmake.launchTargetDirectory}"
27+
]
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)