Skip to content

Commit

Permalink
feat: add vscode debugging settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed May 21, 2022
1 parent 3070ef3 commit 6dffb27
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test/build
.cache
.cache/
test/build/
install/
test_install/build/
44 changes: 44 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch lldb",
"program": "${workspaceRoot}/test/build/Debug/main",
"args": [],
"cwd": "${workspaceRoot}"
},
{
"name": "Attach lldb",
"type": "lldb",
"request": "attach",
"pid": "${command:pickMyProcess}"
},
{
"name": "Launch gdb",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/test/build/Debug/main",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
},
]
}
6 changes: 6 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,9 @@ words:
- Wuseless
- xcrun
- Yahyaabadi
- "ARGN"
- "CMAKE"
- "fargs"
- "shlib"
- "vcpkg"
- cppdbg

0 comments on commit 6dffb27

Please sign in to comment.