View Source edb_dap (edb v0.4.0)
Support for the DAP Protocol
The Debug Adapter Protocol (DAP) defines the abstract protocol used between a development tool (e.g. IDE or editor) and a debugger, using JSON-RPC as the underlying transport protocol.
This module implements the types and functions required to encode and decode messages to and from the DAP protocol.
For the full specification, please refer to:
https://microsoft.github.io/debug-adapter-protocol/specification
Summary
Types
-type arguments() :: map().
-type body() :: map().
-type checksum() :: #{algorithm := checksumAlgorithm(), checksum := binary()}.
-type checksumAlgorithm() :: 'MD5' | 'SHA1' | 'SHA256' | timestamp.
-type command() :: binary().
-type error_response() :: #{success := false, body => #{error => message()}}.
-type event() :: #{seq := seq(), type := event, event := event_type(), body => body()}.
-type event_type() :: binary().
-opaque frame()
-type protocol_message() :: #{seq := seq(), type := protocol_message_type()}.
-type protocol_message_type() :: request | response | event.
-type seq() :: pos_integer().
-type stepping_granularity() :: statement | line | instruction.
-type thread_id() :: number().