bintju
bintju

Reputation: 31

vscode: Unable to start debugging . The value of miDebuggerPath is invalid

debugging error notification

I use the vscode to debug my code, my code can run but it can't start debugging.

my 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++"
        }
    ]
}

Upvotes: 3

Views: 5486

Answers (2)

黄铭禛
黄铭禛

Reputation: 1

You just need to delete the .vscode file, I spend a lot of time solving this problem, and I worked it now in this way

Upvotes: 0

uwouldntgetit
uwouldntgetit

Reputation: 69

Try deleting the .vscode file in your project directory, and then rerun it, with me it worked perfectly

Upvotes: 2

Related Questions