2021-04-22 17:39:48 +02:00
|
|
|
{
|
|
|
|
// 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": [
|
|
|
|
{
|
|
|
|
"name": "g++ - Build and debug active file",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${fileDirname}/${fileBasenameNoExtension}",
|
|
|
|
"args": [],
|
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
2021-04-23 20:49:41 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Point gdb to correct dir for includes",
|
|
|
|
"text": "set substitute-path /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include /usr/include/c++/10.2.0"
|
2021-04-22 17:39:48 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"preLaunchTask": "C/C++: g++ build active file",
|
|
|
|
"miDebuggerPath": "/usr/bin/gdb"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|