Readme: pretty printing with vscode-cpptools / gdb
This commit is contained in:
parent
51d78fce5f
commit
dc862fe565
1 changed files with 36 additions and 3 deletions
39
README.md
39
README.md
|
|
@ -61,9 +61,10 @@ For detailed explanation of the `.vimspector.json` format, see the
|
||||||
* [Closing debugger](#closing-debugger)
|
* [Closing debugger](#closing-debugger)
|
||||||
* [Terminate debuggee](#terminate-debuggee)
|
* [Terminate debuggee](#terminate-debuggee)
|
||||||
* [Debug profile configuration](#debug-profile-configuration)
|
* [Debug profile configuration](#debug-profile-configuration)
|
||||||
* [C, C , Rust, etc.](#c-c-rust-etc)
|
* [C, C++, Rust, etc.](#c-c-rust-etc)
|
||||||
* [C Remote debugging](#c-remote-debugging)
|
* [Data visualization / pretty printing](#data-visualization--pretty-printing)
|
||||||
* [C Remote launch and attach](#c-remote-launch-and-attach)
|
* [C++ Remote debugging](#c-remote-debugging)
|
||||||
|
* [C++ Remote launch and attach](#c-remote-launch-and-attach)
|
||||||
* [Rust](#rust)
|
* [Rust](#rust)
|
||||||
* [Python](#python)
|
* [Python](#python)
|
||||||
* [Python Remote Debugging](#python-remote-debugging)
|
* [Python Remote Debugging](#python-remote-debugging)
|
||||||
|
|
@ -1176,6 +1177,38 @@ licensing.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Data visualization / pretty printing
|
||||||
|
|
||||||
|
Depending on the backend you need to enable pretty printing of complex types manually.
|
||||||
|
|
||||||
|
* LLDB: Pretty printing is enabled by default
|
||||||
|
|
||||||
|
* GDB: To enable gdb pretty printers, consider the snippet below.
|
||||||
|
It is not enough to have `set print pretty on` in your .gdbinit!
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"configurations": {
|
||||||
|
"Launch": {
|
||||||
|
"adapter": "vscode-cpptools",
|
||||||
|
"configuration": {
|
||||||
|
"request": "launch",
|
||||||
|
"program": "<path to binary>",
|
||||||
|
...
|
||||||
|
"MIMode": "gdb"
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### C++ Remote debugging
|
### C++ Remote debugging
|
||||||
|
|
||||||
The cpptools documentation describes how to attach cpptools to gdbserver using
|
The cpptools documentation describes how to attach cpptools to gdbserver using
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue