Add debug configurations for VSCode

This commit is contained in:
Jan Niklas Hasse 2020-10-19 18:27:52 +02:00
parent a3a6456586
commit 6febaeda1a

37
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,37 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "cppdbg",
"preLaunchTask": "build",
"request": "launch",
"program": "${workspaceRoot}/build/unittest",
"name": "unittest (C/C++ extension)",
"cwd": "${workspaceRoot}/build",
"setupCommands": [
{
"text": "-enable-pretty-printing",
"description": "enable pretty printing",
"ignoreFailures": true
},
]
},
{
"type": "lldb-mi",
"request": "launch",
"name": "unittest (CodeLLDB extension)",
"target": "./build/unittest",
"cwd": "${workspaceRoot}"
},
{
"name": "unittest (Native Debug extension)",
"type": "gdb",
"request": "launch",
"target": "./build/unittest",
"cwd": "${workspaceRoot}"
}
]
}