Expand description
Debug Adapter Protocol (DAP) client — launch, breakpoints, step, stack/vars.
Talks DAP with Content-Length framing over stdio (same transport as LSP). Auto-picks a local adapter when available:
- Python →
python -m debugpy.adapter/debugpy-adapter - Go →
dlv dap - Rust / C / C++ →
lldb-dap/codelldb/lldb-vscode - Node →
js-debug-adapter(if present)
Sequence (matches VS Code): initialize → response → launch → adapter
emits initialized → setBreakpoints* → setExceptionBreakpoints →
configurationDone → launch response. Adapters that never emit
initialized get the configuration after a 2s fallback in poll().
UI surface lives in the TUI (Mode::Debug); this module is headless-safe.
Structs§
- Breakpoint
- DapClient
- Launch
Config - Minimal VS Code-compatible launch configuration.
- Stack
Frame Info - VarNode
- One row of the Variables tree (scopes are depth-0 roots).
Enums§
Constants§
- DAP_
PANEL_ ANIM_ MS - Panel slide-up duration.
Functions§
- load_
launch_ configs - Walk up from
hintlooking for.vscode/launch.jsonand parse configurations.