In my vscode cppdbg launch configuration, I am using setupCommands like
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
I would like to add additional gdb setup commands like
set print repeats 0
set print elements 0
into my launch configuration
Where can I find some documentation about this?
I cannot find detailed documentation too, but here it is how I see solution
You can modify launch.json like this
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"text": "set print elements 0"
}
],
Or you can use vscode debug console to interact with gdb. See example below:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With