From bfa18c90ecc290575dc2bf2f5cadadd88954f3c7246363b2f929d5e988c78d44 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 26 Nov 2026 13:00:30 +1000 Subject: [PATCH] add debugger config --- .zed/debug.json | 36 ++++++++++++++++++++++++++++++++++++ .zed/settings.json | 8 ++++++++ 2 files changed, 44 insertions(+) create mode 100644 .zed/debug.json create mode 100644 .zed/settings.json diff --git a/.zed/debug.json b/.zed/debug.json new file mode 100644 index 0000000..fb4a912 --- /dev/null +++ b/.zed/debug.json @@ -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" + ] + } + } +] diff --git a/.zed/settings.json b/.zed/settings.json new file mode 100644 index 0000000..14aa2b7 --- /dev/null +++ b/.zed/settings.json @@ -0,0 +1,8 @@ + { + "languages": { + "C++": { + "tab_size": 4, + "format_on_save": "on" + } + } + }