我的调试器 VSCode 不显示变量的任何值 /图像附加//c++/
我最近开始使用了 VSCode 似乎我无法理解如何使用调试器。 在 c++ 鹿皮革调试器显示任何可以读取的值。
p.s 我设置了扩展 c++ intellisense 经过 microsoft.
编辑
https://i.stack.imgur.com/7oGrj.png
https://i.stack.imgur.com/OruBN.png
我的 launch.json:
}
我的 tasks.json:
p.s 我设置了扩展 c++ intellisense 经过 microsoft.
编辑
https://i.stack.imgur.com/7oGrj.png
https://i.stack.imgur.com/OruBN.png
我的 launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "g++.exe build active file"
}
]
}
我的 tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "g++.exe build active file",
"command": "C:\\MinGW\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:\\MinGW\\bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "shell",
"label": "C/C++: g++.exe build active file",
"command": "C:\\MinGW\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
没有找到相关结果
已邀请:
1 个回复
八刀丁二
赞同来自: