Skip to main content

Module dap

Module dap 

Source
Expand description

DAP (Debug Adapter Protocol) host — the reference DebugService implementation behind the coding-omp-v1 “Debug service” extension.

DapClient speaks the wire protocol (Content-Length framed JSON over the adapter’s stdio): requests are matched to responses by request_seq, events accumulate in a shared log. DapDebugService manages a map of live sessions and implements the agent-side super::DebugService contract: start (initialize + launch/attach), request (typed DAP passthrough), terminate (terminate + disconnect + cleanup).

Session config shape for start: { "adapter": ["debugpy", "--listen", ...], "request": "launch", ...launchArguments }adapter is the adapter process command; all other keys are forwarded verbatim as the launch/attach arguments.

Structs§

DapClient
A live DAP adapter connection.
DapDebugService
Reference DebugService: manages DAP adapter sessions.