View Source edb_dap_server (edb v0.3.0)

DAP server A simple debug adapter which can be used to interface with the edb Erlang debugger.

Summary

Types

action/0

-type action() ::
          {event, edb_dap:event_type(), edb_dap:arguments()} |
          {reverse_request, edb_dap:command(), edb_dap:body()} |
          terminate.

state/0

-type state() :: {transport_state(), edb_dap_state:t()}.

transport_state/0

-type transport_state() :: #{io := port(), buffer := binary(), seq := pos_integer()}.

Functions

handle_call(Request, From, State)

-spec handle_call(term(), term(), state()) -> {noreply, state()} | {stop | reply, term(), state()}.

handle_cast(Request, State)

-spec handle_cast(Request, state()) -> {noreply, state()} | {stop, normal, state()}
                     when
                         Request :: {handle_message, edb_dap:request() | edb_dap:response()} | terminate.

handle_info(PortEvent, State)

-spec handle_info({port(), {data, binary()}} | {port(), eof} | edb:event_envelope(edb:event()), state()) ->
                     {noreply, state()} | {stop, Reason :: normal, state()}.

init(_)

-spec init(noargs) -> {ok, state()}.

start_link()

-spec start_link() -> {ok, pid()}.

terminate(Reason, State)

-spec terminate(Reason :: term(), state()) -> ok.