每次我安装这个POS机软件并试图调试它时,要么告诉我我的路径错误,要么告诉我"a.out不存在“。我将粘贴我的launch.json。
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/a.out",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
]}
据我所知,这应该可以工作,但现在我被告知我的miDebuggerPath是无效的。请帮帮忙,如果我不能调试我的程序,这台笔记本电脑会被扔到高速公路上的。
发布于 2021-06-18 04:51:52
原来我没有重新初始化我的WSL环境。此外,删除我目录中的整个.vscode文件夹,然后重新创建它也解决了这个问题。
https://stackoverflow.com/questions/68025183
复制相似问题