summaryrefslogtreecommitdiff
path: root/.zed
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-13 14:14:13 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-13 14:14:13 +0300
commite185a9d719d469a0fd7edcf09a6342f7b10cbb8e (patch)
tree81113fb4e0564d17cb2b271f13a0ae1ed14feae4 /.zed
parentc059e3aa7f93da470f052a5cd8ee0d8dc969e679 (diff)
Add Zed debugger integration and setup guide
Diffstat (limited to '.zed')
-rw-r--r--.zed/debug.json56
-rw-r--r--.zed/tasks.json68
2 files changed, 124 insertions, 0 deletions
diff --git a/.zed/debug.json b/.zed/debug.json
new file mode 100644
index 0000000..8e54bf5
--- /dev/null
+++ b/.zed/debug.json
@@ -0,0 +1,56 @@
+[
+ {
+ "label": "YASL: debug hello",
+ "adapter": "CodeLLDB",
+ "request": "launch",
+ "build": "YASL: build for debugger",
+ "stopOnEntry": true,
+ "program": "$ZED_WORKTREE_ROOT/build/yasl-hello",
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: debug simple window",
+ "adapter": "CodeLLDB",
+ "request": "launch",
+ "build": "YASL: build for debugger",
+ "stopOnEntry": true,
+ "program": "$ZED_WORKTREE_ROOT/build/yasl-example",
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: debug tablet",
+ "adapter": "CodeLLDB",
+ "request": "launch",
+ "build": "YASL: build for debugger",
+ "stopOnEntry": true,
+ "program": "$ZED_WORKTREE_ROOT/build/yasl-tablet",
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: debug notepad",
+ "adapter": "CodeLLDB",
+ "request": "launch",
+ "build": "YASL: build for debugger",
+ "stopOnEntry": true,
+ "program": "$ZED_WORKTREE_ROOT/build/yasl-notepad",
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: debug game",
+ "adapter": "CodeLLDB",
+ "request": "launch",
+ "build": "YASL: build for debugger",
+ "stopOnEntry": true,
+ "program": "$ZED_WORKTREE_ROOT/build/yasl-game",
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: debug lifecycle test (no display required)",
+ "adapter": "CodeLLDB",
+ "request": "launch",
+ "build": "YASL: build for debugger",
+ "stopOnEntry": true,
+ "program": "$ZED_WORKTREE_ROOT/build/tests/yasl-test",
+ "cwd": "$ZED_WORKTREE_ROOT"
+ }
+]
diff --git a/.zed/tasks.json b/.zed/tasks.json
new file mode 100644
index 0000000..6df4810
--- /dev/null
+++ b/.zed/tasks.json
@@ -0,0 +1,68 @@
+[
+ {
+ "label": "YASL: configure debug build",
+ "command": "meson",
+ "args": ["setup", "build", "--backend=ninja", "--buildtype=debug"],
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: reconfigure",
+ "command": "meson",
+ "args": ["setup", "--reconfigure", "build"],
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: build",
+ "command": "meson",
+ "args": ["compile", "-C", "build"],
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: build for debugger",
+ "command": "meson setup --reconfigure build --backend=ninja -Dbuildtype=debug -Ddebug=true -Doptimization=0 -Db_lto=false && meson compile -C build",
+ "cwd": "$ZED_WORKTREE_ROOT",
+ "shell": { "program": "sh" }
+ },
+ {
+ "label": "YASL: test",
+ "command": "meson",
+ "args": ["test", "-C", "build", "--print-errorlogs"],
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: benchmark",
+ "command": "meson",
+ "args": ["test", "-C", "build", "--benchmark", "--verbose"],
+ "cwd": "$ZED_WORKTREE_ROOT"
+ },
+ {
+ "label": "YASL: run hello",
+ "command": "meson compile -C build yasl-hello && exec ./build/yasl-hello",
+ "cwd": "$ZED_WORKTREE_ROOT",
+ "shell": { "program": "sh" }
+ },
+ {
+ "label": "YASL: run simple window",
+ "command": "meson compile -C build yasl-example && exec ./build/yasl-example",
+ "cwd": "$ZED_WORKTREE_ROOT",
+ "shell": { "program": "sh" }
+ },
+ {
+ "label": "YASL: run tablet",
+ "command": "meson compile -C build yasl-tablet && exec ./build/yasl-tablet",
+ "cwd": "$ZED_WORKTREE_ROOT",
+ "shell": { "program": "sh" }
+ },
+ {
+ "label": "YASL: run notepad",
+ "command": "meson compile -C build yasl-notepad && exec ./build/yasl-notepad",
+ "cwd": "$ZED_WORKTREE_ROOT",
+ "shell": { "program": "sh" }
+ },
+ {
+ "label": "YASL: run game",
+ "command": "meson compile -C build yasl-game && exec ./build/yasl-game",
+ "cwd": "$ZED_WORKTREE_ROOT",
+ "shell": { "program": "sh" }
+ }
+]