Skip to content

Instantly share code, notes, and snippets.

@sol-prog
Last active August 28, 2022 15:33
Show Gist options
  • Save sol-prog/4b1289bf5bac416ab260bc8a141ddfd4 to your computer and use it in GitHub Desktop.
Save sol-prog/4b1289bf5bac416ab260bc8a141ddfd4 to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"name": "Build (clang) and debug (gdb) active file",
"type": "cppdbg",
"request": "launch",
"program": "C:/DEV/test.exe",
"args": [],
"stopAtEntry": false,
"cwd": "C:/DEV",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "clang.exe build active file"
}
]
}
{
"tasks": [
{
"type": "shell",
"label": "clang.exe build active file",
"command": "C:/msys64/mingw64/bin/clang.exe",
"args": [
"-std=c17",
"-Wall",
"-Wextra",
"-g",
"C:/DEV/test.c",
"-o",
"C:/DEV/test.exe"
],
"options": {
"cwd": "C:/msys64/mingw64/bin"
}
}
],
"version": "2.0.0"
}
{
"terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": ["--login"],
"terminal.integrated.env.windows": {
"CHERE_INVOKING":"1",
"MSYSTEM":"MINGW64"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment