I configured my launch.json file in VScode to use gdb with the pretty printing.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch program",
"type": "cppdbg",
"request": "launch",
"program": "~/bin/program",
"stopAtEntry": false,
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
Unfortunately, it doesn't work and a lot of variables contains weird attributes like __d, __r, px, pn,... that I can't understand.