Protocols
Saved & recent

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.

Related
Language Server Protocol, Message framing, Protocol state machine, DAP breakpoints, DAP stack frames
Further reading
Microsoft — Debug Adapter Protocol overview
debug adapter DAP native interface editor debugger / runtime editor adapter setBreakpoints request later stopped event stackTrace request stack frames response
The adapter bridges a shared debugging protocol to a particular debugger. Events report changes such as execution stopping.

View in the full Protocols collection