Debug Adapter Protocol
Also called: DAP, debug adapter
The Debug Adapter Protocol standardizes communication between a development tool’s debugging interface and an adapter for a debugger or runtime. The adapter translates operations such as setting breakpoints or inspecting variables into the underlying debugger’s commands. This separates the editor integration from debugger-specific details.
When execution pauses at a breakpoint, an adapter can send a stopped event; the editor can then request stack frames and variable values. DAP uses framed JSON messages with requests, responses and events, but its message schema is not JSON-RPC. Capabilities describe optional behavior, so support varies between adapters.