add debugger config

This commit is contained in:
2026-11-26 13:00:30 +10:00
parent 62c3f124c9
commit bfa18c90ec
2 changed files with 44 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
// Project-local debug tasks
//
// For more documentation on how to configure debug tasks,
// see: https://zed.dev/docs/debugger
[
{
"label": "Build Main",
"adapter": "CodeLLDB",
"program": "a.out",
"request": "launch",
"build": {
"command": "g++",
"args": ["-std=c++20", "-fopenmp", "./src/main.cpp", "-o3"]
}
},
{
"label": "Build & Debug Main",
"adapter": "CodeLLDB",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/a.out",
"cwd": "$ZED_WORKTREE_ROOT",
"stopOnEntry": false,
"build": {
"command": "g++",
"args": [
"-std=c++20",
"-fopenmp",
"-g",
"-O0",
"./src/main.cpp",
"-o",
"a.out"
]
}
}
]