View Source edb_dap_request_variables (edb v0.5.0)
Summary
Types
-type arguments() :: #{variablesReference := variables_reference(), filter => indexed | named, start => number(), count => number(), format => value_format()}.
-type response_body() :: #{variables := [variable()]}.
-type value_format() :: #{hex => boolean()}.
-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()}.
-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()}.
-type variables_reference() :: number().
Functions
-spec handle(State, Args) -> edb_dap_request:reaction(response_body()) when State :: edb_dap_server:state(), Args :: arguments().
-spec parse_arguments(edb_dap:arguments()) -> {ok, arguments()} | {error, Reason :: binary()}.
-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().
-spec structure_variables_ref(FrameId, Structure) -> variables_reference() when FrameId :: edb_dap_id_mappings:id(), Structure :: none | edb_dap_eval_delegate:structure().
-spec value_format_template() -> edb_dap_parse:template().