Class: DAP::Request

Inherits:
ProtocolMessage show all
Defined in:
lib/dap/request.rb

Overview

A client or debug adapter initiated request.

Class Method Summary collapse

Methods inherited from ProtocolMessage

from, #initialize, types

Methods inherited from Base

#[], build, empty, #initialize, many, one_of, properties, property, property_names, #to_wire, transform, #validate!

Constructor Details

This class inherits a constructor from DAP::ProtocolMessage

Class Method Details

.argumentsHash<Symbol, Class>

Allowed request commands and their arguments types.

Returns:

  • (Hash<Symbol, Class>)


49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/dap/request.rb', line 49

def self.arguments
  @arguments ||= one_of(
    cancel: DAP::CancelArguments,
    runInTerminal: DAP::RunInTerminalRequestArguments,
    initialize: DAP::InitializeRequestArguments,
    configurationDone: empty,
    launch: DAP::LaunchRequestArguments,
    attach: DAP::AttachRequestArguments,
    restart: empty,
    disconnect: DAP::DisconnectArguments,
    terminate: DAP::TerminateArguments,
    breakpointLocations: DAP::BreakpointLocationsArguments,
    setBreakpoints: DAP::SetBreakpointsArguments,
    setFunctionBreakpoints: DAP::SetFunctionBreakpointsArguments,
    setExceptionBreakpoints: DAP::SetExceptionBreakpointsArguments,
    dataBreakpointInfo: DAP::DataBreakpointInfoArguments,
    setDataBreakpoints: DAP::SetDataBreakpointsArguments,
    setInstructionBreakpoints: DAP::SetInstructionBreakpointsArguments,
    continue: DAP::ContinueArguments,
    next: DAP::NextArguments,
    stepIn: DAP::StepInArguments,
    stepOut: DAP::StepOutArguments,
    stepBack: DAP::StepBackArguments,
    reverseContinue: DAP::ReverseContinueArguments,
    restartFrame: DAP::RestartFrameArguments,
    goto: DAP::GotoArguments,
    pause: DAP::PauseArguments,
    stackTrace: DAP::StackTraceArguments,
    scopes: DAP::ScopesArguments,
    variables: DAP::VariablesArguments,
    setVariable: DAP::SetVariableArguments,
    source: DAP::SourceArguments,
    threads: empty,
    terminateThreads: DAP::TerminateThreadsArguments,
    modules: DAP::ModulesArguments,
    loadedSources: empty,
    evaluate: DAP::EvaluateArguments,
    setExpression: DAP::SetExpressionArguments,
    stepInTargets: DAP::StepInTargetsArguments,
    gotoTargets: DAP::GotoTargetsArguments,
    completions: DAP::CompletionsArguments,
    exceptionInfo: DAP::ExceptionInfoArguments,
    readMemory: DAP::ReadMemoryArguments,
    disassemble: DAP::DisassembleArguments,
  )
end

.typeObject



43
44
45
# File 'lib/dap/request.rb', line 43

def self.type
  'request'
end