yams/.zed/debug.json
2025-09-20 22:55:34 -04:00

40 lines
1.1 KiB
JSON

// Project-local debug tasks
//
// For more documentation on how to configure debug tasks,
// see: https://zed.dev/docs/debugger
[
{
"name": "Debug yams-daemon (CodeLLDB)",
"label": "Debug yams-daemon",
"adapter": "CodeLLDB",
"request": "launch",
"program": "${workspaceFolder}/build/debug/src/daemon/yams-daemon",
"args": [
"--log-level",
"debug",
"--foreground",
"--socket",
"/run/user/1000/yams-daemon.sock"
],
"cwd": "${workspaceFolder}",
"preLaunchTask": "build (Debug)",
"env": {
"YAMS_LOG_LEVEL": "debug",
"YAMS_STORAGE": "/Volumes/picaso/yams",
"ASAN_OPTIONS": "fast_unwind_on_malloc=0:strict_string_checks=1"
}
},
{
"name": "Attach to yams-daemon (CodeLLDB)",
"label": "Attach to yams-daemon",
"adapter": "CodeLLDB",
"request": "attach",
"pid": "${command:pickProcess}",
"cwd": "${workspaceFolder}",
"env": {
"YAMS_LOG_LEVEL": "debug",
"ASAN_OPTIONS": "fast_unwind_on_malloc=0:strict_string_checks=1:sleep_before_dying=10",
"LSAN_OPTIONS": "use_tls=0:verbosity=1:log_threads=1"
}
}
]