Created
June 12, 2018 09:11
-
-
Save huihut/9548fe7e1084cf8e844120c5668b8177 to your computer and use it in GitHub Desktop.
Configuring launch.json for C/C++ debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables which can be used inside of strings. | |
// ${workspaceRoot}: the root folder of the team | |
// ${file}: the current opened file | |
// ${fileBasename}: the current opened file's basename | |
// ${fileDirname}: the current opened file's dirname | |
// ${fileExtname}: the current opened file's extension | |
// ${cwd}: the current working directory of the spawned process | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdb) Launch", | |
"preLaunchTask": "build", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${fileDirname}/${fileBasenameNoExtension}.exe", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": true, | |
"MIMode": "gdb", | |
"miDebuggerPath": "gdb.exe", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
] | |
}] | |
} |
My vscode debugger is opening stl files(stack, dequeue) middle of the debugging and going through them and then coming back to program. I can't understand what the problem is.
Can anyone help?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@LennyAtomz138 not exactly but i figured it out somehow, thanks for the help!