Skip to content

Commit

Permalink
Update vscode configuration to support debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
berikv committed Dec 16, 2021
1 parent d2339ee commit 5fb0a7d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{ // This configuration fails to attach the process for debugging as described here: https://github.com/microsoft/vscode-cpptools/issues/3161.
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"externalConsole": false,
"MIMode": "lldb",
},
{ // Requires the CodeLLDB plugin, works for debugging
"name": "Launch",
"type": "lldb",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${command:cmake.launchTargetPath}",
"args": [],
}
]
}
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"cmake.sourceDirectory": "${workspaceFolder}/src"
"cmake.sourceDirectory": "${workspaceFolder}/src",
"C_Cpp.intelliSenseEngine": "Tag Parser",
"files.associations": {
"*.h": "c",
},
}

0 comments on commit 5fb0a7d

Please sign in to comment.