Compile operation is good, debugging is can't use,
After click debug pops out this stuff,

Attach my configuration
(low sprout new followed the match of the online tutorials, where the wrong I also don't know emmm)
Launch. The json
{
//use IntelliSense understand relevant properties,
//hover to view the description of existing attributes,
//for more information, please visit: https://go.microsoft.com/fwlink/? Linkid=830387
"Version" : "0.2.0,"
"Configurations:" [
{
"Name" : "g + +. Exe - generating and commissioning activities file",
//"name" : "c + + Launch (GDB)",
"Type" : "CPPDBG,"
"Request" : "launch",
"The program" : "${fileDirname} \ \ ${fileBasenameNoExtension}. Exe",
"Args" : [],
"StopAtEntry" : false,
"CWD" : "${workspaceFolder},
"The environment" : [],
"ExternalConsole" : true,
"MIMode" : "the GDB,"
"MiDebuggerPath" : "C:/mingw64/bin/GDB. Exe",
"SetupCommands" : [
{
"Description" : "for GDB is enabled in print,"
"Text", "- the enable - pretty - printing",
"IgnoreFailures" : true
}
],
"PreLaunchTask" : "C/C + + : g + +. Exe build active file"
}
]
}
The tasks. The json
{
"Version" : "2.0.0,"
"Tasks" : [
{
"Type" : "shell",
"Label" : "g + +. Exe build active file",
"Command" : "C: \ \ mingw64 \ \ bin \ \ g + +",
"Args" : [
"- g,"
"${file}",
"- o,"
"${fileDirname} \ \ ${fileBasenameNoExtension}. Exe"
],
"Options" : {
"CWD" : "C: \ \ mingw64 \ \ bin"
},
"ProblemMatcher" : [
"$GCC
"],
"Group" : "build"
},
{
"Type" : "shell",
"Label" : "C/C + + : g + +. Exe build active file",
"Command" : "C: \ \ mingw64 \ \ bin \ \ g + + exe",
"Args" : [
"- g,"
"${file}",
"- o,"
"${fileDirname} \ \ ${fileBasenameNoExtension}. Exe"
],
"Options" : {
"CWD" : "${workspaceFolder}
"},
"ProblemMatcher" : [
"$GCC
"],
"Group" : {
"Kind" : "build,"
"IsDefault" : true
}
}
]
}
Please come to a big,
CodePudding user response:
Bother you! I solved!