在launch.json文件中添加如下内容:
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
注意时添加在特性"configurations"中。