ruby-dap 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/AUTHORS +7 -0
- data/LICENSE +201 -0
- data/lib/dap.rb +21 -0
- data/lib/dap/attach_request_arguments.rb +6 -0
- data/lib/dap/base.rb +145 -0
- data/lib/dap/breakpoint.rb +36 -0
- data/lib/dap/breakpoint_event_body.rb +10 -0
- data/lib/dap/breakpoint_location.rb +13 -0
- data/lib/dap/breakpoint_locations_arguments.rb +18 -0
- data/lib/dap/breakpoint_locations_response_body.rb +6 -0
- data/lib/dap/cancel_arguments.rb +9 -0
- data/lib/dap/capabilities.rb +110 -0
- data/lib/dap/capabilities_event_body.rb +6 -0
- data/lib/dap/checksum.rb +9 -0
- data/lib/dap/checksum_algorithm.rb +6 -0
- data/lib/dap/column_descriptor.rb +17 -0
- data/lib/dap/completion_item.rb +33 -0
- data/lib/dap/completion_item_type.rb +21 -0
- data/lib/dap/completions_arguments.rb +13 -0
- data/lib/dap/completions_response_body.rb +6 -0
- data/lib/dap/continue_arguments.rb +5 -0
- data/lib/dap/continue_response_body.rb +5 -0
- data/lib/dap/continued_event_body.rb +7 -0
- data/lib/dap/data_breakpoint.rb +16 -0
- data/lib/dap/data_breakpoint_access_type.rb +5 -0
- data/lib/dap/data_breakpoint_info_arguments.rb +8 -0
- data/lib/dap/data_breakpoint_info_response_body.rb +15 -0
- data/lib/dap/disassemble_arguments.rb +17 -0
- data/lib/dap/disassemble_response_body.rb +6 -0
- data/lib/dap/disassembled_instruction.rb +32 -0
- data/lib/dap/disconnect_arguments.rb +9 -0
- data/lib/dap/encoding.rb +47 -0
- data/lib/dap/enum.rb +28 -0
- data/lib/dap/error_response_body.rb +6 -0
- data/lib/dap/evaluate_arguments.rb +23 -0
- data/lib/dap/evaluate_response_body.rb +32 -0
- data/lib/dap/event.rb +42 -0
- data/lib/dap/exception_break_mode.rb +6 -0
- data/lib/dap/exception_breakpoints_filter.rb +10 -0
- data/lib/dap/exception_details.rb +21 -0
- data/lib/dap/exception_info_arguments.rb +4 -0
- data/lib/dap/exception_info_response_body.rb +16 -0
- data/lib/dap/exception_options.rb +11 -0
- data/lib/dap/exception_path_segment.rb +7 -0
- data/lib/dap/exited_event_body.rb +4 -0
- data/lib/dap/function_breakpoint.rb +13 -0
- data/lib/dap/goto_arguments.rb +7 -0
- data/lib/dap/goto_target.rb +22 -0
- data/lib/dap/goto_targets_arguments.rb +12 -0
- data/lib/dap/goto_targets_response_body.rb +6 -0
- data/lib/dap/initialize_request_arguments.rb +41 -0
- data/lib/dap/instruction_breakpoint.rb +18 -0
- data/lib/dap/invalidated_event_body.rb +10 -0
- data/lib/dap/launch_request_arguments.rb +9 -0
- data/lib/dap/loaded_source_event_body.rb +10 -0
- data/lib/dap/loaded_sources_response_body.rb +6 -0
- data/lib/dap/message.rb +23 -0
- data/lib/dap/module.rb +28 -0
- data/lib/dap/module_event_body.rb +10 -0
- data/lib/dap/modules_arguments.rb +7 -0
- data/lib/dap/modules_response_body.rb +9 -0
- data/lib/dap/next_arguments.rb +9 -0
- data/lib/dap/output_event_body.rb +36 -0
- data/lib/dap/pause_arguments.rb +4 -0
- data/lib/dap/process_event_body.rb +21 -0
- data/lib/dap/progress_end_event_body.rb +7 -0
- data/lib/dap/progress_start_event_body.rb +24 -0
- data/lib/dap/progress_update_event_body.rb +10 -0
- data/lib/dap/protocol_message.rb +38 -0
- data/lib/dap/read_memory_arguments.rb +10 -0
- data/lib/dap/read_memory_response_body.rb +12 -0
- data/lib/dap/relation.rb +28 -0
- data/lib/dap/request.rb +91 -0
- data/lib/dap/response.rb +86 -0
- data/lib/dap/restart_frame_arguments.rb +4 -0
- data/lib/dap/reverse_continue_arguments.rb +4 -0
- data/lib/dap/run_in_terminal_request_arguments.rb +17 -0
- data/lib/dap/run_in_terminal_response_body.rb +7 -0
- data/lib/dap/scope.rb +43 -0
- data/lib/dap/scopes_arguments.rb +4 -0
- data/lib/dap/scopes_response_body.rb +6 -0
- data/lib/dap/set_breakpoints_arguments.rb +16 -0
- data/lib/dap/set_breakpoints_response_body.rb +7 -0
- data/lib/dap/set_data_breakpoints_arguments.rb +6 -0
- data/lib/dap/set_data_breakpoints_response_body.rb +6 -0
- data/lib/dap/set_exception_breakpoints_arguments.rb +10 -0
- data/lib/dap/set_expression_arguments.rb +15 -0
- data/lib/dap/set_expression_response_body.rb +27 -0
- data/lib/dap/set_function_breakpoints_arguments.rb +6 -0
- data/lib/dap/set_function_breakpoints_response_body.rb +6 -0
- data/lib/dap/set_instruction_breakpoints_arguments.rb +6 -0
- data/lib/dap/set_instruction_breakpoints_response_body.rb +6 -0
- data/lib/dap/set_variable_arguments.rb +15 -0
- data/lib/dap/set_variable_response_body.rb +21 -0
- data/lib/dap/source.rb +35 -0
- data/lib/dap/source_arguments.rb +10 -0
- data/lib/dap/source_breakpoint.rb +21 -0
- data/lib/dap/source_response_body.rb +7 -0
- data/lib/dap/stack_frame.rb +36 -0
- data/lib/dap/stack_frame_format.rb +24 -0
- data/lib/dap/stack_trace_arguments.rb +16 -0
- data/lib/dap/stack_trace_response_body.rb +10 -0
- data/lib/dap/step_back_arguments.rb +9 -0
- data/lib/dap/step_in_arguments.rb +12 -0
- data/lib/dap/step_in_target.rb +7 -0
- data/lib/dap/step_in_targets_arguments.rb +4 -0
- data/lib/dap/step_in_targets_response_body.rb +6 -0
- data/lib/dap/step_out_arguments.rb +9 -0
- data/lib/dap/stepping_granularity.rb +5 -0
- data/lib/dap/stopped_event_body.rb +23 -0
- data/lib/dap/terminate_arguments.rb +4 -0
- data/lib/dap/terminate_threads_arguments.rb +4 -0
- data/lib/dap/terminated_event_body.rb +5 -0
- data/lib/dap/thread.rb +7 -0
- data/lib/dap/thread_event_body.rb +8 -0
- data/lib/dap/threads_response_body.rb +6 -0
- data/lib/dap/value_format.rb +4 -0
- data/lib/dap/variable.rb +34 -0
- data/lib/dap/variable_presentation_hint.rb +34 -0
- data/lib/dap/variables_arguments.rb +20 -0
- data/lib/dap/variables_response_body.rb +6 -0
- metadata +163 -0
data/lib/dap/enum.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
class DAP::Enum
|
2
|
+
def self.from(value)
|
3
|
+
values[value]
|
4
|
+
end
|
5
|
+
|
6
|
+
def to_s
|
7
|
+
@value
|
8
|
+
end
|
9
|
+
|
10
|
+
def to_wire
|
11
|
+
@value
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def self.new(value)
|
17
|
+
super
|
18
|
+
end
|
19
|
+
|
20
|
+
def initialize(value)
|
21
|
+
@value = value
|
22
|
+
self.class.values[value] = self
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.values
|
26
|
+
@values ||= {}
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require_relative 'value_format'
|
2
|
+
|
3
|
+
class DAP::EvaluateArguments < DAP::Base
|
4
|
+
# The expression to evaluate.
|
5
|
+
property :expression
|
6
|
+
|
7
|
+
# Evaluate the expression in the scope of this stack frame. If not specified, the expression is evaluated in the global scope.
|
8
|
+
property :frameId, required: false
|
9
|
+
|
10
|
+
# The context in which the evaluate request is run.
|
11
|
+
# Values:
|
12
|
+
# 'watch': evaluate is run in a watch.
|
13
|
+
# 'repl': evaluate is run from REPL console.
|
14
|
+
# 'hover': evaluate is run from a data hover.
|
15
|
+
# 'clipboard': evaluate is run to generate the value that will be stored in the clipboard.
|
16
|
+
# The attribute is only honored by a debug adapter if the capability 'supportsClipboardContext' is true.
|
17
|
+
# etc.
|
18
|
+
property :context, required: false # 'watch' | 'repl' | 'hover' | 'clipboard' | string
|
19
|
+
|
20
|
+
# Specifies details on how to format the Evaluate result.
|
21
|
+
# The attribute is only honored by a debug adapter if the capability 'supportsValueFormattingOptions' is true.
|
22
|
+
property :format, required: false, as: DAP::ValueFormat
|
23
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require_relative 'variable_presentation_hint'
|
2
|
+
|
3
|
+
class DAP::EvaluateResponseBody < DAP::Base
|
4
|
+
# The result of the evaluate request.
|
5
|
+
property :result
|
6
|
+
|
7
|
+
# The optional type of the evaluate result.
|
8
|
+
# This attribute should only be returned by a debug adapter if the client has passed the value true for the 'supportsVariableType' capability of the 'initialize' request.
|
9
|
+
property :type, required: false
|
10
|
+
|
11
|
+
# Properties of a evaluate result that can be used to determine how to render the result in the UI.
|
12
|
+
property :presentationHint, required: false, as: DAP::VariablePresentationHint
|
13
|
+
|
14
|
+
# If variablesReference is > 0, the evaluate result is structured and its children can be retrieved by passing variablesReference to the VariablesRequest.
|
15
|
+
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
16
|
+
property :variablesReference
|
17
|
+
|
18
|
+
# The number of named child variables.
|
19
|
+
# The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
|
20
|
+
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
21
|
+
property :namedVariables, required: false
|
22
|
+
|
23
|
+
# The number of indexed child variables.
|
24
|
+
# The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
|
25
|
+
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
26
|
+
property :indexedVariables, required: false
|
27
|
+
|
28
|
+
# Optional memory reference to a location appropriate for this result.
|
29
|
+
# For pointer type eval results, this is generally a reference to the memory address contained in the pointer.
|
30
|
+
# This attribute should be returned by a debug adapter if the client has passed the value true for the 'supportsMemoryReferences' capability of the 'initialize' request.
|
31
|
+
property :memoryReference, required: false
|
32
|
+
end
|
data/lib/dap/event.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
require_relative 'breakpoint_event_body'
|
2
|
+
require_relative 'capabilities_event_body'
|
3
|
+
require_relative 'continued_event_body'
|
4
|
+
require_relative 'exited_event_body'
|
5
|
+
require_relative 'invalidated_event_body'
|
6
|
+
require_relative 'loaded_source_event_body'
|
7
|
+
require_relative 'module_event_body'
|
8
|
+
require_relative 'output_event_body'
|
9
|
+
require_relative 'process_event_body'
|
10
|
+
require_relative 'progress_end_event_body'
|
11
|
+
require_relative 'progress_start_event_body'
|
12
|
+
require_relative 'progress_update_event_body'
|
13
|
+
require_relative 'stopped_event_body'
|
14
|
+
require_relative 'terminated_event_body'
|
15
|
+
require_relative 'thread_event_body'
|
16
|
+
|
17
|
+
class DAP::Event < DAP::ProtocolMessage
|
18
|
+
def self.type
|
19
|
+
'event'
|
20
|
+
end
|
21
|
+
|
22
|
+
property :event
|
23
|
+
|
24
|
+
property :body, as: one_of(
|
25
|
+
initialized: empty,
|
26
|
+
stopped: DAP::StoppedEventBody,
|
27
|
+
continued: DAP::ContinuedEventBody,
|
28
|
+
exited: DAP::ExitedEventBody,
|
29
|
+
terminated: DAP::TerminatedEventBody,
|
30
|
+
thread: DAP::ThreadEventBody,
|
31
|
+
output: DAP::OutputEventBody,
|
32
|
+
breakpoint: DAP::BreakpointEventBody,
|
33
|
+
module: DAP::ModuleEventBody,
|
34
|
+
loadedSource: DAP::LoadedSourceEventBody,
|
35
|
+
process: DAP::ProcessEventBody,
|
36
|
+
capabilities: DAP::CapabilitiesEventBody,
|
37
|
+
progressStart: DAP::ProgressStartEventBody,
|
38
|
+
progressUpdate: DAP::ProgressUpdateEventBody,
|
39
|
+
progressEnd: DAP::ProgressEndEventBody,
|
40
|
+
invalidated: DAP::InvalidatedEventBody,
|
41
|
+
).with(:event)
|
42
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class DAP::ExceptionBreakpointsFilter < DAP::Base
|
2
|
+
# The internal ID of the filter. This value is passed to the setExceptionBreakpoints request.
|
3
|
+
property :filter
|
4
|
+
|
5
|
+
# The name of the filter. This will be shown in the UI.
|
6
|
+
property :label
|
7
|
+
|
8
|
+
# Initial value of the filter. If not specified a value 'false' is assumed.
|
9
|
+
property :default, required: false
|
10
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require_relative 'exception_details'
|
2
|
+
|
3
|
+
class DAP::ExceptionDetails < DAP::Base
|
4
|
+
# Message contained in the exception.
|
5
|
+
property :message, required: false
|
6
|
+
|
7
|
+
# Short type name of the exception object.
|
8
|
+
property :typeName, required: false
|
9
|
+
|
10
|
+
# Fully-qualified type name of the exception object.
|
11
|
+
property :fullTypeName, required: false
|
12
|
+
|
13
|
+
# Optional expression that can be evaluated in the current scope to obtain the exception object.
|
14
|
+
property :evaluateName, required: false
|
15
|
+
|
16
|
+
# Stack trace at the time the exception was thrown.
|
17
|
+
property :stackTrace, required: false
|
18
|
+
|
19
|
+
# Details of the exception contained by this exception, if any.
|
20
|
+
property :innerException, required: false, as: many(DAP::ExceptionDetails)
|
21
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative 'exception_break_mode'
|
2
|
+
require_relative 'exception_details'
|
3
|
+
|
4
|
+
class DAP::ExceptionInfoResponseBody < DAP::Base
|
5
|
+
# ID of the exception that was thrown.
|
6
|
+
property :exceptionId
|
7
|
+
|
8
|
+
# Descriptive text for the exception provided by the debug adapter.
|
9
|
+
property :description, required: false
|
10
|
+
|
11
|
+
# Mode that caused the exception notification to be raised.
|
12
|
+
property :breakMode, as: DAP::ExceptionBreakMode
|
13
|
+
|
14
|
+
# Detailed information about the exception.
|
15
|
+
property :details, required: false, as: DAP::ExceptionDetails
|
16
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require_relative 'exception_path_segment'
|
2
|
+
require_relative 'exception_break_mode'
|
3
|
+
|
4
|
+
class DAP::ExceptionOptions < DAP::Base
|
5
|
+
# A path that selects a single or multiple exceptions in a tree. If 'path' is missing, the whole tree is selected.
|
6
|
+
# By convention the first segment of the path is a category that is used to group exceptions in the UI.
|
7
|
+
property :path, required: false, as: many(DAP::ExceptionPathSegment)
|
8
|
+
|
9
|
+
# Condition when a thrown exception should result in a break.
|
10
|
+
property :breakMode, as: DAP::ExceptionBreakMode
|
11
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class DAP::ExceptionPathSegment < DAP::Base
|
2
|
+
# If false or missing this segment matches the names provided, otherwise it matches anything except the names provided.
|
3
|
+
property :negate, required: false
|
4
|
+
|
5
|
+
# Depending on the value of 'negate' the names that should match or not match.
|
6
|
+
property :names
|
7
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class DAP::FunctionBreakpoint < DAP::Base
|
2
|
+
# The name of the function.
|
3
|
+
property :name
|
4
|
+
|
5
|
+
# An optional expression for conditional breakpoints.
|
6
|
+
# It is only honored by a debug adapter if the capability 'supportsConditionalBreakpoints' is true.
|
7
|
+
property :condition, required: false
|
8
|
+
|
9
|
+
# An optional expression that controls how many hits of the breakpoint are ignored.
|
10
|
+
# The backend is expected to interpret the expression as needed.
|
11
|
+
# The attribute is only honored by a debug adapter if the capability 'supportsHitConditionalBreakpoints' is true.
|
12
|
+
property :hitCondition, required: false
|
13
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class DAP::GotoTarget < DAP::Base
|
2
|
+
# Unique identifier for a goto target. This is used in the goto request.
|
3
|
+
property :id
|
4
|
+
|
5
|
+
# The name of the goto target (shown in the UI).
|
6
|
+
property :label
|
7
|
+
|
8
|
+
# The line of the goto target.
|
9
|
+
property :line
|
10
|
+
|
11
|
+
# An optional column of the goto target.
|
12
|
+
property :column, required: false
|
13
|
+
|
14
|
+
# An optional end line of the range covered by the goto target.
|
15
|
+
property :endLine, required: false
|
16
|
+
|
17
|
+
# An optional end column of the range covered by the goto target.
|
18
|
+
property :endColumn, required: false
|
19
|
+
|
20
|
+
# Optional memory reference for the instruction pointer value represented by this target.
|
21
|
+
property :instructionPointerReference, required: false
|
22
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require_relative 'source'
|
2
|
+
|
3
|
+
class DAP::GotoTargetsArguments < DAP::Base
|
4
|
+
# The source location for which the goto targets are determined.
|
5
|
+
property :source, as: DAP::Source
|
6
|
+
|
7
|
+
# The line location for which the goto targets are determined.
|
8
|
+
property :line
|
9
|
+
|
10
|
+
# An optional column location for which the goto targets are determined.
|
11
|
+
property :column, required: false
|
12
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
class DAP::InitializeRequestArguments < DAP::Base
|
2
|
+
# The ID of the (frontend) client using this adapter.
|
3
|
+
property :clientID, required: false
|
4
|
+
|
5
|
+
# The human readable name of the (frontend) client using this adapter.
|
6
|
+
property :clientName, required: false
|
7
|
+
|
8
|
+
# The ID of the debug adapter.
|
9
|
+
property :adapterID
|
10
|
+
|
11
|
+
# The ISO-639 locale of the (frontend) client using this adapter, e.g. en-US or de-CH.
|
12
|
+
property :locale, required: false
|
13
|
+
|
14
|
+
# If true all line numbers are 1-based (default).
|
15
|
+
property :linesStartAt1, required: false
|
16
|
+
|
17
|
+
# If true all column numbers are 1-based (default).
|
18
|
+
property :columnsStartAt1, required: false
|
19
|
+
|
20
|
+
# Determines in what format paths are specified. The default is 'path', which is the native format.
|
21
|
+
# Values: 'path', 'uri', etc.
|
22
|
+
property :pathFormat, required: false # 'path' | 'uri' | string
|
23
|
+
|
24
|
+
# Client supports the optional type attribute for variables.
|
25
|
+
property :supportsVariableType, required: false
|
26
|
+
|
27
|
+
# Client supports the paging of variables.
|
28
|
+
property :supportsVariablePaging, required: false
|
29
|
+
|
30
|
+
# Client supports the runInTerminal request.
|
31
|
+
property :supportsRunInTerminalRequest, required: false
|
32
|
+
|
33
|
+
# Client supports memory references.
|
34
|
+
property :supportsMemoryReferences, required: false
|
35
|
+
|
36
|
+
# Client supports progress reporting.
|
37
|
+
property :supportsProgressReporting, required: false
|
38
|
+
|
39
|
+
# Client supports the invalidated event.
|
40
|
+
property :supportsInvalidatedEvent, required: false
|
41
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class DAP::InstructionBreakpoint < DAP::Base
|
2
|
+
# The instruction reference of the breakpoint.
|
3
|
+
# This should be a memory or instruction pointer reference from an EvaluateResponse, Variable, StackFrame, GotoTarget, or Breakpoint.
|
4
|
+
property :instructionReference
|
5
|
+
|
6
|
+
# An optional offset from the instruction reference.
|
7
|
+
# This can be negative.
|
8
|
+
property :offset, required: false
|
9
|
+
|
10
|
+
# An optional expression for conditional breakpoints.
|
11
|
+
# It is only honored by a debug adapter if the capability 'supportsConditionalBreakpoints' is true.
|
12
|
+
property :condition, required: false
|
13
|
+
|
14
|
+
# An optional expression that controls how many hits of the breakpoint are ignored.
|
15
|
+
# The backend is expected to interpret the expression as needed.
|
16
|
+
# The attribute is only honored by a debug adapter if the capability 'supportsHitConditionalBreakpoints' is true.
|
17
|
+
property :hitCondition, required: false
|
18
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class DAP::InvalidatedEventBody < DAP::Base
|
2
|
+
# Optional set of logical areas that got invalidated. This property has a hint characteristic: a client can only be expected to make a 'best effort' in honouring the areas but there are no guarantees. If this property is missing, empty, or if values are not understand the client should assume a single value 'all'.
|
3
|
+
property :areas, required: false # InvalidatedAreas[]
|
4
|
+
|
5
|
+
# If specified, the client only needs to refetch data related to this thread.
|
6
|
+
property :threadId, required: false
|
7
|
+
|
8
|
+
# If specified, the client only needs to refetch data related to this stack frame (and the 'threadId' is ignored).
|
9
|
+
property :stackFrameId, required: false
|
10
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class DAP::LaunchRequestArguments < DAP::Base
|
2
|
+
# If noDebug is true the launch request should launch the program without enabling debugging.
|
3
|
+
property :noDebug, required: false
|
4
|
+
|
5
|
+
# Optional data from the previous, restarted session.
|
6
|
+
# The data is sent as the 'restart' attribute of the 'terminated' event.
|
7
|
+
# The client should leave the data intact.
|
8
|
+
property :__restart, required: false
|
9
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require_relative 'source'
|
2
|
+
|
3
|
+
class DAP::LoadedSourceEventBody < DAP::Base
|
4
|
+
# The reason for the event.
|
5
|
+
# Values: 'new', 'changed', 'removed', etc.
|
6
|
+
property :reason # 'new' | 'changed' | 'removed'
|
7
|
+
|
8
|
+
# The new, changed, or removed source.
|
9
|
+
property :source, as: DAP::Source
|
10
|
+
end
|
data/lib/dap/message.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
class DAP::Message < DAP::Base
|
2
|
+
# Unique identifier for the message.
|
3
|
+
property :id
|
4
|
+
|
5
|
+
# A format string for the message. Embedded variables have the form '{name}'.
|
6
|
+
# If variable name starts with an underscore character, the variable does not contain user data (PII) and can be safely used for telemetry purposes.
|
7
|
+
property :format
|
8
|
+
|
9
|
+
# An object used as a dictionary for looking up the variables in the format string.
|
10
|
+
property :variables, required: false # { [key: string]: string; }
|
11
|
+
|
12
|
+
# If true send to telemetry.
|
13
|
+
property :sendTelemetry, required: false
|
14
|
+
|
15
|
+
# If true show user.
|
16
|
+
property :showUser, required: false
|
17
|
+
|
18
|
+
# An optional url where additional information about this message can be found.
|
19
|
+
property :url, required: false
|
20
|
+
|
21
|
+
# An optional label that is presented to the user as the UI for opening the url.
|
22
|
+
property :urlLabel, required: false
|
23
|
+
end
|
data/lib/dap/module.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
class DAP::Module < DAP::Base
|
2
|
+
# Unique identifier for the module.
|
3
|
+
property :id
|
4
|
+
|
5
|
+
# A name of the module.
|
6
|
+
property :name
|
7
|
+
|
8
|
+
# True if the module is optimized.
|
9
|
+
property :isOptimized, required: false
|
10
|
+
|
11
|
+
# True if the module is considered 'user code' by a debugger that supports 'Just My Code'.
|
12
|
+
property :isUserCode, required: false
|
13
|
+
|
14
|
+
# Version of Module.
|
15
|
+
property :version, required: false
|
16
|
+
|
17
|
+
# User understandable description of if symbols were found for the module (ex: 'Symbols Loaded', 'Symbols not found', etc.
|
18
|
+
property :symbolStatus, required: false
|
19
|
+
|
20
|
+
# Logical full path to the symbol file. The exact definition is implementation defined.
|
21
|
+
property :symbolFilePath, required: false
|
22
|
+
|
23
|
+
# Module created or modified.
|
24
|
+
property :dateTimeStamp, required: false
|
25
|
+
|
26
|
+
# Address range covered by this module.
|
27
|
+
property :addressRange, required: false
|
28
|
+
end
|