Home > Back-end >  Vscode configuration c environment total error prelaunchTask "build" terminated, exit code
Vscode configuration c environment total error prelaunchTask "build" terminated, exit code

Time:09-28

The following is my configuration:
Tesk. Json:

Launch. Json:

In the console with GDB to debug, but always to quote the following two mistakes in vscode:


CodePudding user response:

Online are almost the same configuration, it two or three days or so, also didn't see who produced this kind of problem, under the help you greatly the

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,

CodePudding user response:

refer to the second floor zhao4zhong1 response:
collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand, until can read ,

Teacher, how are you, this should not be the program crashes, because under Linux configuration vscode success before, this is for the sake of vscode write the sum of the Windows configuration, the problem is that when debugging failed to start the launch configuration file, prompt the g + + - g generated binary file format is wrong, can't debugging, at first is felt to Windows and Linux generated the debug file format or other details, but inside the Windows console with GDB can be debugging:


But in vscode debugging will be submitted to the questions posted in the wrong, but are using minGW, this is very troubling,

CodePudding user response:

MinGW slam the door, using VMWare/HyperV/VirtualBox/... The Linux virtual machine!

CodePudding user response:

Should path contains Chinese

CodePudding user response:

Well, this is ld returned 1 exit status
  • Related