Reputation: 31
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
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
Reputation: 69
Try deleting the .vscode file in your project directory, and then rerun it, with me it worked perfectly
Upvotes: 2