View Source edb_dap_request_variables (edb v0.4.0)

Summary

Types

arguments/0

-type arguments() ::
          #{variablesReference := number(),
            filter => binary(),
            start => number(),
            count => number(),
            format => value_format()}.

response_body/0

-type response_body() :: #{variables := [variable()]}.

value_format/0

-type value_format() :: #{hex => boolean()}.

variable/0

-type variable() ::
          #{name := binary(),
            value := binary(),
            type => binary(),
            presentationHint => variable_presentation_hint(),
            evaluateName => binary(),
            variablesReference := number(),
            namedVariables => number(),
            indexedVariables => number(),
            memoryReference => binary(),
            declarationLocationReference => number(),
            valueLocationReference => number()}.

variable_presentation_hint/0

-type variable_presentation_hint() ::
          #{kind => binary(), attributes => [binary()], visibility => binary(), lazy => boolean()}.

Functions

handle(State, Args)

-spec handle(State, Args) -> edb_dap_request:reaction(response_body())
                when State :: edb_dap_server:state(), Args :: arguments().

parse_arguments(Args)

-spec parse_arguments(edb_dap:arguments()) -> {ok, arguments()} | {error, Reason :: binary()}.