Skip to content

Instantly share code, notes, and snippets.

@cho0h5
Created February 28, 2025 04:31
Show Gist options
  • Save cho0h5/6eba78c4ab6ea5973691dee51b2eed50 to your computer and use it in GitHub Desktop.
Save cho0h5/6eba78c4ab6ea5973691dee51b2eed50 to your computer and use it in GitHub Desktop.
VSCode Debug Setting in MacOS
{
"version": "0.2.0",
"configurations": [
{
"name": "My Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "My Build",
"MIMode": "lldb"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "My Build",
"command": "g++",
"args": [
"-fsanitize=address",
"-g",
"main.cpp",
"solution.cpp",
],
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment