Protocols
Saved & recent

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
Related
Debug Adapter Protocol, DAP stack frames, Capability negotiation
Further reading
checkout.py checkout.py 10 20 10 20 setBreakpoints line 20 only before · two markers after · line 20 response · verified: true replaces one source file’s set resolved locations may differ
Sending the desired line-20 breakpoint replaces the earlier list for checkout.py and removes its line-10 breakpoint.

View in the full Protocols collection