Skip to content

Instantly share code, notes, and snippets.

@snowden-fu
Created August 10, 2020 13:41
Show Gist options
  • Save snowden-fu/a85d0672b4fb832b95533592a5c140f4 to your computer and use it in GitHub Desktop.
Save snowden-fu/a85d0672b4fb832b95533592a5c140f4 to your computer and use it in GitHub Desktop.
cpp debug configurations
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gcc - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/a.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"preLaunchTask": "C/C++: gcc build active file"
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "C/C++: gcc build active file",
"command": "gcc",
"args": [
"-g",
"${workspaceFolder}/BinarySearch.c",
"-o",
"${fileDirname}/a.out"
],
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment