debugging - vscode : Unable to start debugging . miDebuggerPath 的值无效

标签 debugging visual-studio-code

debugging error notification

我用vscode调试我的代码,我的代码可以运行但无法启动调试。

我的 launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "C++ Launch (GDB)",
            "type": "cppdbg",
            "request": "launch",
            "targetArchitecture": "x86",
            "program": "${file}.exe",
            "miDebuggerPath": "D:\\VisualStudioCode\\mingw\bin\\gdb.exe",
            "args": [
                "blackkitty",
                "1221",
                "# #"
            ],
            "stopAtEntry": false,
            "cwd": "${workspaceRoot}",
            "externalConsole": true,
            "preLaunchTask": "g++"
        }
    ]
}

最佳答案

尝试删除项目目录中的 .vscode 文件,然后重新运行它,我的效果非常好

关于debugging - vscode : Unable to start debugging . miDebuggerPath 的值无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70956914/

相关文章:

debugging - ELF 文件 - 获取字符串使用位置的函数

debugging - VS 代码调试 : Is it possible to supply process-id 'pgrep -x "$myprog "' for use in launch.json (variable "processId") when attach to process-id?

visual-studio-code - 如何在 vscode 中打开文件夹选择器对话框?

python - VSCode ModuleNotFoundError : No module named X

c - 在 if(0) 中用四个 nop 修复了错误,世界不再有意义

windows - C++ : visual studio 2008/2010 "The breakpoint will not currently be hit." issue

jquery - 是否有与 Chrome 的 jQuery 调试器扩展等效的 Firefox/Firebug?

typescript - VS-Code 提示访问器但针对 ES6

flutter :参数格式不正确

android-studio - 在Flutter中,VS代码编辑器将引发错误-未定义函数 'myApp'