Skip to content

Instantly share code, notes, and snippets.

@Nash0x7E2
Last active October 20, 2018 20:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Nash0x7E2/0a6e0eca85de0c017f79f1ee86204968 to your computer and use it in GitHub Desktop.
C++ Launch config for VSCode
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "your c++ compiler path",
"intelliSenseMode": "msvc-x64"
}
],
"version": 4
}
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "path to gdb.exe (MinGW64\\bin\\gdb.exe) ",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "task 1"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "task 1",
"type": "shell",
"command": "g++",
"args": [
"-g", "your cpp file"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment