Skip to content

Instantly share code, notes, and snippets.

@paroj
Last active January 25, 2022 13:52
Show Gist options
  • Save paroj/dc8e5e135dafb2b4059d45fa30ccae59 to your computer and use it in GitHub Desktop.
Save paroj/dc8e5e135dafb2b4059d45fa30ccae59 to your computer and use it in GitHub Desktop.
{
// launch python through GDB to break in CPP code
"version": "0.2.0",
"configurations": [
{
"name": "GDB Python: Current File",
"type": "cppdbg",
"request": "launch",
"program": "/usr/bin/python",
"args": [
"${file}"
],
"cwd": "${fileDirname}",
"stopAtEntry": false,
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment