Home > Back-end >  Excuse me I configuration vs code code exactly what went wrong
Excuse me I configuration vs code code exactly what went wrong

Time:10-03

I want to use vs code to write a C/C + +, but has been no, configuration type CPPDBG is not correct,

{
"Version" : "0.2.0,"
"Configurations:" [
{
"Name" : "c + + Launch (GDB)",//configuration name, will be in the Launch configuration drop-down menu shown in
" type ":" CPPDBG ",//configuration type, here only for CPPDBG
[/color]"Request" : "launch",//request configuration type, to launch (start) or the attach (additional)
"launchOptionType" : "Local", //debugger start type, here only for Local
"targetArchitecture" : "x86," //generates target architecture, generally for x86 or x64, for x86 and arm, arm64, MIPS, x64, amd64, x86_64
"The program" : "${file}. Exe",//to debug program path
"miDebuggerPath" : "f: \ \ mingw \ \ bin \ \ GDB exe", //miDebugger path, note here with mingw path corresponding to the
"Args" : [" blackkitty ", "1221", "# #"],//program debugging when passed to the command line parameters, generally can be set to an empty
" stopAtEntry ": false, //set to true when the program will be suspended at the entrance to the program, usually set to false
"CWD" : "${workspaceRoot}",//debug program working directory, usually ${workspaceRoot} the code directory
"ExternalConsole" : true,//debug whether display console window, generally set to true display console
"PreLaunchTask" : "g + +"//debug session prior to the start of the task, generally for the compiler, for g + + c + +, c for GCC
}
]

CodePudding user response:

Baidu search relevant keywords,

CodePudding user response:

I just follow their steps step by step, the results become like this

CodePudding user response:

May vs code requirements must be utf8 encoding configuration file
And you're actually asni or unicode,

CodePudding user response:

Asni - ANSI

CodePudding user response:

I deleted to knock again? Is that ok?

CodePudding user response:

reference 5 floor qq_24328911 reply:
I deleted to knock again? Is that ok?

Use notepad to open, save as, see again what dialog in the default encoding,

CodePudding user response:

Compiled using CMD try run
  • Related