DAP breakpoints
Also called: setBreakpoints, source breakpoints
The Debug Adapter Protocol lets an editor configure breakpoints through a debug adapter. For source breakpoints, setBreakpoints sends the complete desired list for one source file. It replaces that file’s previous list, so removing a breakpoint means sending the remaining list, or an empty list to remove them all.
Suppose checkout.py has breakpoints on lines 10 and 20. Sending only line 20 removes the line-10 breakpoint. The adapter’s response reports whether each requested breakpoint could be set and can identify a different actual location. Conditional breakpoints require the corresponding capability. These are DAP JSON requests and responses, using DAP’s own message structure rather than a JSON-RPC envelope.
- Read first
- Debug Adapter Protocol