39 lines
1.5 KiB
JSON
39 lines
1.5 KiB
JSON
{
|
|
"configurations": [
|
|
{
|
|
"name": "C/C++: gcc build and debug active file",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/a.out",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"cwd": "${fileDirname}",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"MIMode": "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
|
|
},
|
|
// { "description":"In this mode GDB will be attached to both processes after a call to fork() or vfork().",
|
|
// "text": "-gdb-set detach-on-fork off",
|
|
// "ignoreFailures": true
|
|
// },
|
|
// { "description": "The new process is debugged after a fork. The parent process runs unimpeded.",
|
|
// "text": "-gdb-set follow-fork-mode child",
|
|
// "ignoreFailures": true
|
|
// }
|
|
],
|
|
"preLaunchTask": "build main.c",
|
|
"miDebuggerPath": "/usr/bin/gdb"
|
|
}
|
|
],
|
|
"version": "2.0.0"
|
|
} |