Skip to content

Instantly share code, notes, and snippets.

@henrycunh
Created April 25, 2019 02:02
Show Gist options
  • Save henrycunh/c1833c6c3e30f78e0484602fb9c041b7 to your computer and use it in GitHub Desktop.
Save henrycunh/c1833c6c3e30f78e0484602fb9c041b7 to your computer and use it in GitHub Desktop.
C++ Debug Configurations for Lame Windows
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch C++",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"MIMode": "gdb",
"miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
"preLaunchTask": "Build C++",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "Build C++",
"type": "shell",
"command": "g++",
"args": [
"-g", "${fileBasename}", "-o", "${fileBasenameNoExtension}"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment