View Source edb_dap_state (edb v0.3.0)
DAP state An interface around the state of the DAP server.
Summary
Types
-type context() :: #{target_node => target_node(), attach_timeout := non_neg_integer(), cwd := binary(), strip_source_prefix := binary(), cwd_no_source_prefix := binary()}.
-type status() :: started | initialized | {attached, edb:event_subscription()} | cannot_attach.
-opaque t()
-type target_node() :: #{name := node(), cookie := atom(), type => target_node_type()}.
-type target_node_type() :: shortnames | longnames.
Functions
-spec is_valid_subscription(State :: t(), Subscription :: edb:event_subscription()) -> boolean().
-spec make_target_node(edb_dap:target_node()) -> target_node().
-spec new() -> t().