Skip to content

Instantly share code, notes, and snippets.

@AchmadFathoni
Created June 22, 2023 09:14
Show Gist options
  • Save AchmadFathoni/eeb5639456086edaab114b8d557638b3 to your computer and use it in GitHub Desktop.
Save AchmadFathoni/eeb5639456086edaab114b8d557638b3 to your computer and use it in GitHub Desktop.
VImspector config example for CPP
{
"configurations": {
"test": {
"adapter": "vscode-cpptools",
"configuration": {
"request": "launch",
"program": "${workspaceRoot}/build/hello_world",
"setupCommands": [{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},{
"description": "Enbale debug info",
"text": " -gdb-set debuginfod enabled on"
}],
"breakpoints": {
"exception": {
"all": "Y"
}
}
}
}
}
}
@AchmadFathoni
Copy link
Author

The setupCommands's text" are GDB/MI command, Such as Enable pretty printing and Enable debug info download using -gdb-set. Breakpoints at exception can be configured as this manual stated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment