Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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