Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ericdke
Created December 31, 2020 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdke/96236dc70a24df0efc047a04815a293c to your computer and use it in GitHub Desktop.
Save ericdke/96236dc70a24df0efc047a04815a293c to your computer and use it in GitHub Desktop.
VSCode multiple CPP files
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "echo",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
{
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "g++",
"args":[
"-g","**.cpp"
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment