Last active
March 11, 2019 07:08
-
-
Save torumakabe/9fd91d4478d83612c6d7cc68b5d44a3e to your computer and use it in GitHub Desktop.
VS Code C Debugger Configuration (Windows)
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/a.exe", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": true, | |
"MIMode": "gdb", | |
"miDebuggerPath": "C:/ProgramData/chocolatey/bin/gdb.exe", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
] | |
} | |
] | |
} |
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
// task.json | |
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Debug Build", | |
"type": "process", | |
"command": "gcc", | |
"args": [ | |
"-g", | |
"-O0", | |
"${workspaceFolder}/a.c", | |
"-o${workspaceFolder}/a.exe" | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"problemMatcher": "$gcc" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment