Skip to content

Commit bb287fe

Browse files
committed
Update vscode configuration to support debugging
1 parent 57575c5 commit bb287fe

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{ // This configuration fails to attach the process for debugging as described here: https://github.com/microsoft/vscode-cpptools/issues/3161.
5+
"name": "(lldb) Launch",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"cwd": "${workspaceFolder}",
9+
"program": "${command:cmake.launchTargetPath}",
10+
"args": [],
11+
"stopAtEntry": false,
12+
"externalConsole": false,
13+
"MIMode": "lldb",
14+
},
15+
{ // Requires the CodeLLDB plugin, works for debugging
16+
"name": "Launch",
17+
"type": "lldb",
18+
"request": "launch",
19+
"cwd": "${workspaceFolder}",
20+
"program": "${command:cmake.launchTargetPath}",
21+
"args": [],
22+
}
23+
]
24+
}

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"cmake.sourceDirectory": "${workspaceFolder}/src"
2+
"cmake.sourceDirectory": "${workspaceFolder}/src",
3+
"C_Cpp.intelliSenseEngine": "Tag Parser",
4+
"files.associations": {
5+
"*.h": "c",
6+
},
37
}

0 commit comments

Comments
 (0)