debugging 如何在VSCode C++中调试时更改变量的视图

whlutmcx  于 2023-08-06  发布在  Vscode
关注(0)|答案(1)|浏览(142)

在我的VisualStudio代码程序中,当调试时,我看到我的变量是这样的


的数据
但我想看到我的变量像这样


如何更改VS Code中的变量视图?

juud5qan

juud5qan1#

将此添加到您的gdb启动配置

{
      "name": "g++.exe - Build and debug active file",
      "type": "cppdbg",
      "request": "launch",
.....
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ]
    }

字符串

相关问题