Skip to content

Instantly share code, notes, and snippets.

@paroj
Last active January 25, 2022 13:52
Show Gist options
  • Select an option

  • Save paroj/dc8e5e135dafb2b4059d45fa30ccae59 to your computer and use it in GitHub Desktop.

Select an option

Save paroj/dc8e5e135dafb2b4059d45fa30ccae59 to your computer and use it in GitHub Desktop.

Revisions

  1. paroj revised this gist Jan 25, 2022. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions launch.json
    Original file line number Diff line number Diff line change
    @@ -21,10 +21,6 @@
    "text": "-enable-pretty-printing",
    "ignoreFailures": true
    }
    ,{ // comment this out, if you dont want to break on throw
    "text": "-catch-throw",
    "ignoreFailures": true
    }
    ]
    }
    ]
  2. paroj created this gist Jan 10, 2022.
    31 changes: 31 additions & 0 deletions launch.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    {
    // 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
    }
    ,{ // comment this out, if you dont want to break on throw
    "text": "-catch-throw",
    "ignoreFailures": true
    }
    ]
    }
    ]
    }