VSCode 报错 [Please specity the “MIDebuggerPath“ option] --无法调试c
VSCode 报错 :https://i-blog.csdnimg.cn/direct/1c56c0d13bc4430ea1e87c63904305a6.png
办理方法:
1、查抄是否安装gdb (gdb -V)
2、未安装接纳:
apt-get update
apt-get install gdb
3、安装完成后:(gdb -V检测)
https://i-blog.csdnimg.cn/direct/22d9db0ed4b343ee89661d3924948ba1.png
4、修改launch.json
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/realse/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++ 生成活动文件"
}
]
5、再点击调试即可
https://i-blog.csdnimg.cn/direct/dbbd718074694783a601e205c0fe96be.png
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]