Home > Back-end >  Vscode can't debugging, but can run code is why?
Vscode can't debugging, but can run code is why?

Time:09-29

With vscode can Run code every time, but the debugger will pop up the box, don't know how to solve, bosses know what's going on?
Attach my launch. Jason and taks. Jason

{
"Version" : "0.2.0,"
"Configurations:" [
{
"Name" : "(GDB) Launch",
"PreLaunchTask" : "build,"
"Type" : "CPPDBG,"
"Request" : "launch",
"The program" : "fileDirname fileDirname/{fileBasenameNoExtension}. Exe",
"Args" : [],
"StopAtEntry" : false,
"CWD" : "${workspaceFolder},
"The environment" : [],
"ExternalConsole" : true,
"MIMode" : "the GDB,"
"MiDebuggerPath" : "E: \ MinGW \ mingw32 \ bin \ GDB exe",
"SetupCommands" : [
{
"Description" : "Enable pretty - printing for GDB",
"Text", "- the enable - pretty - printing",
"IgnoreFailures" : true
}
]
}]
}

{
"Version" : "2.0.0,"
"Tasks" : [
{
"Label" : "build,"
"Type" : "shell",
"Group" : {
"Kind" : "build,"
"IsDefault" : true
},
"The presentation" : {
"Echo" : true,
"Pass reveal" : "always,"
"Focus" : false,
"Panel" : "Shared"
},
"Windows" : {
"Command", "g + +",
"Args" : [
"-ggdb",
"" KaTeX parse error: Can 't use the function' " 'in math mode at position 7: {file} \??" ",... {fileDirname} \ ${fileBasenameNoExtension}. Exe ""
]
}
}
]
}

CodePudding user response:

Programmer is one of the common sense: don't put program source code, or projects or exe desktop this complex (mostly with Spaces and the characters and the firewall or antivirus software tight control on disk C) of the directory,

CodePudding user response:

Because there are Chinese
I put the path of the Chinese, the blank space to delete

CodePudding user response:

MinGW path does not support Chinese, debugging
  • Related