View Source edb_dap_request_variables (edb v0.5.0)

Summary

Types

arguments/0

-type arguments() ::
          #{variablesReference := variables_reference(),
            filter => indexed | named,
            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 := variables_reference(),
            namedVariables => number(),
            indexedVariables => number(),
            memoryReference => binary(),
            declarationLocationReference => number(),
            valueLocationReference => number()}.

variable_presentation_hint/0

-type variable_presentation_hint() ::
          #{kind =>
                property | method | class | data | event | baseClass | innerClass | interface |
                mostDerivedClass | virtual | dataBreakpoint,
            attributes =>
                [static | constant | readOnly | rawString | hasObjectId | canHaveObjectId |
                 hasSideEffects | hasDataBreakpoint],
            visibility => public | private | protected | internal | final,
            lazy => boolean()}.

variables_reference/0

-type variables_reference() :: number().

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()}.

scope_variables_ref(ClientInfo, FrameId, Scope)

-spec scope_variables_ref(ClientInfo, FrameId, Scope) -> edb_dap_request_variables:variables_reference()
                             when
                                 ClientInfo :: edb_dap_server:client_info(),
                                 FrameId :: edb_dap_id_mappings:id(),
                                 Scope :: edb_dap_eval_delegate:scope().

structure_variables_ref(FrameId, Structure)

-spec structure_variables_ref(FrameId, Structure) -> variables_reference()
                                 when
                                     FrameId :: edb_dap_id_mappings:id(),
                                     Structure :: none | edb_dap_eval_delegate:structure().

value_format_template()

-spec value_format_template() -> edb_dap_parse:template().