Home > Back-end >  For help: VS Code debugging C, variables, monitor does not display, breakpoint could use
For help: VS Code debugging C, variables, monitor does not display, breakpoint could use

Time:09-26

In Mac environment, debug a simple c + + program, debugging a breakpoint, the program will run directly, and after the run, variables, monitor doesn't show anything,


This is my launch configuration file
 
{
//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" : "(LLDB) start",
"Type" : "CPPDBG,"
"Request" : "launch",
"The program" : "${fileDirname}/${fileBasenameNoExtension}. Out",
"Args" : [],
"StopAtEntry" : false,
"CWD" : "${workspaceFolder}",//debug program working directory, this is the workspace folder; Can be turned into file directory to ${fileDirname}
"The environment" : [],
"ExternalConsole" : true,
"MIMode" : "LLDB,"
"SetupCommands" : [
{
"Description" : "Enable pretty - printing for LLDB",
"Text", "- the enable - pretty - printing",
"IgnoreFailures" : false,
}
],

}
],
"PreLaunchTask" : "TASKS"
}


This is my tasks configuration file
 
{
//See https://go.microsoft.com/fwlink/? LinkId=733558
//for the documentation about the tasks. The json format
"Version" : "2.0.0,"
"Tasks" : [
{
"Label" : "TASKS",
"Type" : "shell",
"Command" : "clang++",//c + + with g + +, c with GCC?
"Args" : [
"${file}",
"- o,"
"${fileDirname}/${fileBasenameNoExtension}. Out",
"- g,"
],
"Group" : {
"Kind" : "build,"
"IsDefault" : true
},
"The presentation" : {
"Echo" : true,
"Pass reveal" : "always,"
"Focus" : false,
"Panel" : "Shared,"
"ShowReuseMessage" : true,
"The clear" : true
}

}
]
}

CodePudding user response:

I was crying you find a solution for sharing!
  • Related