ruby-dap 0.1.2 → 0.1.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +17 -3
- data/lib/dap.rb +4 -0
- data/lib/dap/attach_request_arguments.rb +2 -0
- data/lib/dap/base.rb +57 -6
- data/lib/dap/breakpoint.rb +11 -9
- data/lib/dap/breakpoint_event_body.rb +2 -1
- data/lib/dap/breakpoint_location.rb +6 -4
- data/lib/dap/breakpoint_locations_arguments.rb +5 -4
- data/lib/dap/breakpoint_locations_response_body.rb +2 -0
- data/lib/dap/cancel_arguments.rb +3 -2
- data/lib/dap/capabilities.rb +33 -32
- data/lib/dap/capabilities_event_body.rb +6 -0
- data/lib/dap/checksum.rb +2 -1
- data/lib/dap/checksum_algorithm.rb +1 -0
- data/lib/dap/column_descriptor.rb +8 -5
- data/lib/dap/completion_item.rb +8 -7
- data/lib/dap/completion_item_type.rb +2 -0
- data/lib/dap/completions_arguments.rb +5 -4
- data/lib/dap/completions_response_body.rb +1 -0
- data/lib/dap/continue_arguments.rb +2 -1
- data/lib/dap/continue_response_body.rb +2 -1
- data/lib/dap/continued_event_body.rb +7 -2
- data/lib/dap/data_breakpoint.rb +4 -3
- data/lib/dap/data_breakpoint_access_type.rb +1 -0
- data/lib/dap/data_breakpoint_info_arguments.rb +3 -2
- data/lib/dap/data_breakpoint_info_response_body.rb +3 -2
- data/lib/dap/disassemble_arguments.rb +6 -5
- data/lib/dap/disassemble_response_body.rb +1 -0
- data/lib/dap/disassembled_instruction.rb +9 -8
- data/lib/dap/disconnect_arguments.rb +3 -2
- data/lib/dap/encoding.rb +12 -1
- data/lib/dap/enum.rb +6 -0
- data/lib/dap/error_response_body.rb +1 -0
- data/lib/dap/evaluate_arguments.rb +4 -3
- data/lib/dap/evaluate_response_body.rb +7 -6
- data/lib/dap/event.rb +7 -0
- data/lib/dap/exception_break_mode.rb +6 -0
- data/lib/dap/exception_breakpoints_filter.rb +5 -3
- data/lib/dap/exception_details.rb +6 -5
- data/lib/dap/exception_info_arguments.rb +2 -1
- data/lib/dap/exception_info_response_body.rb +3 -2
- data/lib/dap/exception_options.rb +1 -0
- data/lib/dap/exception_path_segment.rb +6 -2
- data/lib/dap/exited_event_body.rb +2 -1
- data/lib/dap/function_breakpoint.rb +4 -3
- data/lib/dap/goto_arguments.rb +3 -2
- data/lib/dap/goto_target.rb +10 -7
- data/lib/dap/goto_targets_arguments.rb +3 -2
- data/lib/dap/goto_targets_response_body.rb +1 -0
- data/lib/dap/initialize_request_arguments.rb +14 -13
- data/lib/dap/instruction_breakpoint.rb +5 -4
- data/lib/dap/invalidated_event_body.rb +11 -3
- data/lib/dap/launch_request_arguments.rb +3 -1
- data/lib/dap/loaded_source_event_body.rb +3 -1
- data/lib/dap/loaded_sources_response_body.rb +1 -0
- data/lib/dap/message.rb +8 -7
- data/lib/dap/module.rb +17 -8
- data/lib/dap/module_event_body.rb +2 -1
- data/lib/dap/modules_arguments.rb +3 -2
- data/lib/dap/modules_response_body.rb +2 -1
- data/lib/dap/next_arguments.rb +2 -1
- data/lib/dap/output_event_body.rb +7 -6
- data/lib/dap/pause_arguments.rb +2 -1
- data/lib/dap/process_event_body.rb +7 -5
- data/lib/dap/progress_end_event_body.rb +5 -2
- data/lib/dap/progress_start_event_body.rb +12 -6
- data/lib/dap/progress_update_event_body.rb +9 -3
- data/lib/dap/protocol_message.rb +12 -1
- data/lib/dap/read_memory_arguments.rb +4 -3
- data/lib/dap/read_memory_response_body.rb +4 -3
- data/lib/dap/relation.rb +17 -1
- data/lib/dap/request.rb +7 -0
- data/lib/dap/response.rb +22 -1
- data/lib/dap/restart_frame_arguments.rb +2 -1
- data/lib/dap/reverse_continue_arguments.rb +2 -1
- data/lib/dap/run_in_terminal_request_arguments.rb +6 -5
- data/lib/dap/run_in_terminal_response_body.rb +3 -2
- data/lib/dap/scope.rb +12 -10
- data/lib/dap/scopes_arguments.rb +2 -1
- data/lib/dap/scopes_response_body.rb +1 -0
- data/lib/dap/set_breakpoints_arguments.rb +3 -2
- data/lib/dap/set_breakpoints_response_body.rb +5 -0
- data/lib/dap/set_data_breakpoints_arguments.rb +1 -0
- data/lib/dap/set_data_breakpoints_response_body.rb +2 -0
- data/lib/dap/set_exception_breakpoints_arguments.rb +2 -1
- data/lib/dap/set_expression_arguments.rb +4 -3
- data/lib/dap/set_expression_response_body.rb +6 -5
- data/lib/dap/set_function_breakpoints_arguments.rb +1 -0
- data/lib/dap/set_function_breakpoints_response_body.rb +2 -0
- data/lib/dap/set_instruction_breakpoints_arguments.rb +1 -0
- data/lib/dap/set_instruction_breakpoints_response_body.rb +1 -0
- data/lib/dap/set_variable_arguments.rb +4 -3
- data/lib/dap/set_variable_response_body.rb +6 -5
- data/lib/dap/source.rb +7 -5
- data/lib/dap/source_arguments.rb +2 -1
- data/lib/dap/source_breakpoint.rb +6 -5
- data/lib/dap/source_response_body.rb +3 -2
- data/lib/dap/stack_frame.rb +9 -8
- data/lib/dap/stack_frame_format.rb +8 -7
- data/lib/dap/stack_trace_arguments.rb +4 -3
- data/lib/dap/stack_trace_response_body.rb +2 -1
- data/lib/dap/step_back_arguments.rb +2 -1
- data/lib/dap/step_in_arguments.rb +3 -2
- data/lib/dap/step_in_target.rb +4 -2
- data/lib/dap/step_in_targets_arguments.rb +2 -1
- data/lib/dap/step_in_targets_response_body.rb +1 -0
- data/lib/dap/step_out_arguments.rb +2 -1
- data/lib/dap/stepping_granularity.rb +10 -0
- data/lib/dap/stopped_event_body.rb +9 -6
- data/lib/dap/terminate_arguments.rb +2 -1
- data/lib/dap/terminate_threads_arguments.rb +2 -1
- data/lib/dap/terminated_event_body.rb +2 -0
- data/lib/dap/thread.rb +3 -2
- data/lib/dap/thread_event_body.rb +3 -2
- data/lib/dap/threads_response_body.rb +1 -0
- data/lib/dap/value_format.rb +2 -1
- data/lib/dap/variable.rb +17 -8
- data/lib/dap/variable_presentation_hint.rb +5 -3
- data/lib/dap/variables_arguments.rb +5 -4
- data/lib/dap/variables_response_body.rb +1 -0
- metadata +2 -2
data/lib/dap/scopes_arguments.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require_relative 'source'
|
2
2
|
require_relative 'source_breakpoint'
|
3
3
|
|
4
|
+
# Arguments for ‘setBreakpoints’ request.
|
4
5
|
class DAP::SetBreakpointsArguments < DAP::Base
|
5
6
|
# The source location of the breakpoints; either 'source.path' or 'source.reference' must be specified.
|
6
7
|
property :source, as: DAP::Source
|
@@ -9,8 +10,8 @@ class DAP::SetBreakpointsArguments < DAP::Base
|
|
9
10
|
property :breakpoints, required: false, as: many(DAP::SourceBreakpoint)
|
10
11
|
|
11
12
|
# Deprecated: The code locations of the breakpoints.
|
12
|
-
property :lines, required: false
|
13
|
+
property :lines, required: false, as: 'number[]'
|
13
14
|
|
14
15
|
# A value of true indicates that the underlying source has been modified which results in new breakpoint locations.
|
15
|
-
property :sourceModified, required: false
|
16
|
+
property :sourceModified, required: false, as: 'boolean'
|
16
17
|
end
|
@@ -1,5 +1,10 @@
|
|
1
1
|
require_relative 'breakpoint'
|
2
2
|
|
3
|
+
# Response to ‘setBreakpoints’ request. Returned is information about each
|
4
|
+
# breakpoint created by this request. This includes the actual code location and
|
5
|
+
# whether the breakpoint could be verified. The breakpoints returned are in the
|
6
|
+
# same order as the elements of the ‘breakpoints’ (or the deprecated ‘lines’)
|
7
|
+
# array in the arguments.
|
3
8
|
class DAP::SetBreakpointsResponseBody < DAP::Base
|
4
9
|
# Information about the breakpoints.
|
5
10
|
# The array elements are in the same order as the elements of the 'breakpoints' (or the deprecated 'lines') array in the arguments.
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require_relative 'data_breakpoint'
|
2
2
|
|
3
|
+
# Arguments for ‘setDataBreakpoints’ request.
|
3
4
|
class DAP::SetDataBreakpointsArguments < DAP::Base
|
4
5
|
# The contents of this array replaces all existing data breakpoints. An empty array clears all data breakpoints.
|
5
6
|
property :breakpoints, as: many(DAP::DataBreakpoint)
|
@@ -1,5 +1,7 @@
|
|
1
1
|
require_relative 'breakpoint'
|
2
2
|
|
3
|
+
# Response to ‘setDataBreakpoints’ request. Returned is information about each
|
4
|
+
# breakpoint created by this request.
|
3
5
|
class DAP::SetDataBreakpointsResponseBody < DAP::Base
|
4
6
|
# Information about the data breakpoints. The array elements correspond to the elements of the input argument 'breakpoints' array.
|
5
7
|
property :breakpoints, as: many(DAP::Breakpoint)
|
@@ -1,8 +1,9 @@
|
|
1
1
|
require_relative 'exception_options'
|
2
2
|
|
3
|
+
# Arguments for ‘setExceptionBreakpoints’ request.
|
3
4
|
class DAP::SetExceptionBreakpointsArguments < DAP::Base
|
4
5
|
# IDs of checked exception options. The set of IDs is returned via the 'exceptionBreakpointFilters' capability.
|
5
|
-
property :filters
|
6
|
+
property :filters, as: 'string[]'
|
6
7
|
|
7
8
|
# Configuration options for selected exceptions.
|
8
9
|
# The attribute is only honored by a debug adapter if the capability 'supportsExceptionOptions' is true.
|
@@ -1,14 +1,15 @@
|
|
1
1
|
require_relative 'value_format'
|
2
2
|
|
3
|
+
# Arguments for ‘setExpression’ request.
|
3
4
|
class DAP::SetExpressionArguments < DAP::Base
|
4
5
|
# The l-value expression to assign to.
|
5
|
-
property :expression
|
6
|
+
property :expression, as: 'string'
|
6
7
|
|
7
8
|
# The value expression to assign to the l-value expression.
|
8
|
-
property :value
|
9
|
+
property :value, as: 'string'
|
9
10
|
|
10
11
|
# Evaluate the expressions in the scope of this stack frame. If not specified, the expressions are evaluated in the global scope.
|
11
|
-
property :frameId, required: false
|
12
|
+
property :frameId, required: false, as: 'number'
|
12
13
|
|
13
14
|
# Specifies how the resulting value should be formatted.
|
14
15
|
property :format, required: false, as: DAP::ValueFormat
|
@@ -1,27 +1,28 @@
|
|
1
1
|
require_relative 'variable_presentation_hint'
|
2
2
|
|
3
|
+
# Response to ‘setExpression’ request.
|
3
4
|
class DAP::SetExpressionResponseBody < DAP::Base
|
4
5
|
# The new value of the expression.
|
5
|
-
property :value
|
6
|
+
property :value, as: 'string'
|
6
7
|
|
7
8
|
# The optional type of the value.
|
8
9
|
# 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
|
+
property :type, required: false, as: 'string'
|
10
11
|
|
11
12
|
# Properties of a value that can be used to determine how to render the result in the UI.
|
12
13
|
property :presentationHint, required: false, as: DAP::VariablePresentationHint
|
13
14
|
|
14
15
|
# If variablesReference is > 0, the value is structured and its children can be retrieved by passing variablesReference to the VariablesRequest.
|
15
16
|
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
16
|
-
property :variablesReference, required: false
|
17
|
+
property :variablesReference, required: false, as: 'number'
|
17
18
|
|
18
19
|
# The number of named child variables.
|
19
20
|
# The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
|
20
21
|
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
21
|
-
property :namedVariables, required: false
|
22
|
+
property :namedVariables, required: false, as: 'number'
|
22
23
|
|
23
24
|
# The number of indexed child variables.
|
24
25
|
# The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
|
25
26
|
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
26
|
-
property :indexedVariables, required: false
|
27
|
+
property :indexedVariables, required: false, as: 'number'
|
27
28
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
require_relative 'breakpoint'
|
2
2
|
|
3
|
+
# Response to ‘setFunctionBreakpoints’ request. Returned is information about each
|
4
|
+
# breakpoint created by this request.
|
3
5
|
class DAP::SetFunctionBreakpointsResponseBody < DAP::Base
|
4
6
|
# Information about the breakpoints. The array elements correspond to the elements of the 'breakpoints' array.
|
5
7
|
property :breakpoints, as: many(DAP::Breakpoint)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require_relative 'breakpoint'
|
2
2
|
|
3
|
+
# Response to ‘setInstructionBreakpoints’ request
|
3
4
|
class DAP::SetInstructionBreakpointsResponseBody < DAP::Base
|
4
5
|
# Information about the breakpoints. The array elements correspond to the elements of the 'breakpoints' array.
|
5
6
|
property :breakpoints, as: many(DAP::Breakpoint)
|
@@ -1,14 +1,15 @@
|
|
1
1
|
require_relative 'value_format'
|
2
2
|
|
3
|
+
# Arguments for ‘setVariable’ request.
|
3
4
|
class DAP::SetVariableArguments < DAP::Base
|
4
5
|
# The reference of the variable container.
|
5
|
-
property :variablesReference
|
6
|
+
property :variablesReference, as: 'number'
|
6
7
|
|
7
8
|
# The name of the variable in the container.
|
8
|
-
property :name
|
9
|
+
property :name, as: 'string'
|
9
10
|
|
10
11
|
# The value of the variable.
|
11
|
-
property :value
|
12
|
+
property :value, as: 'string'
|
12
13
|
|
13
14
|
# Specifies details on how to format the response value.
|
14
15
|
property :format, required: false, as: DAP::ValueFormat
|
@@ -1,21 +1,22 @@
|
|
1
|
+
# Response to ‘setVariable’ request.
|
1
2
|
class DAP::SetVariableResponseBody < DAP::Base
|
2
3
|
# The new value of the variable.
|
3
|
-
property :value
|
4
|
+
property :value, as: 'string'
|
4
5
|
|
5
6
|
# The type of the new value. Typically shown in the UI when hovering over the value.
|
6
|
-
property :type, required: false
|
7
|
+
property :type, required: false, as: 'string'
|
7
8
|
|
8
9
|
# If variablesReference is > 0, the new value is structured and its children can be retrieved by passing variablesReference to the VariablesRequest.
|
9
10
|
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
10
|
-
property :variablesReference, required: false
|
11
|
+
property :variablesReference, required: false, as: 'number'
|
11
12
|
|
12
13
|
# The number of named child variables.
|
13
14
|
# The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
|
14
15
|
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
15
|
-
property :namedVariables, required: false
|
16
|
+
property :namedVariables, required: false, as: 'number'
|
16
17
|
|
17
18
|
# The number of indexed child variables.
|
18
19
|
# The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
|
19
20
|
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
20
|
-
property :indexedVariables, required: false
|
21
|
+
property :indexedVariables, required: false, as: 'number'
|
21
22
|
end
|
data/lib/dap/source.rb
CHANGED
@@ -1,27 +1,29 @@
|
|
1
1
|
require_relative 'source'
|
2
2
|
require_relative 'checksum'
|
3
3
|
|
4
|
+
# A Source is a descriptor for source code. It is returned from the debug adapter
|
5
|
+
# as part of a StackFrame and it is used by clients when specifying breakpoints.
|
4
6
|
class DAP::Source < DAP::Base
|
5
7
|
# The short name of the source. Every source returned from the debug adapter has a name.
|
6
8
|
# When sending a source to the debug adapter this name is optional.
|
7
|
-
property :name, required: false
|
9
|
+
property :name, required: false, as: 'string'
|
8
10
|
|
9
11
|
# The path of the source to be shown in the UI.
|
10
12
|
# It is only used to locate and load the content of the source if no sourceReference is specified (or its value is 0).
|
11
|
-
property :path, required: false
|
13
|
+
property :path, required: false, as: 'string'
|
12
14
|
|
13
15
|
# If sourceReference > 0 the contents of the source must be retrieved through the SourceRequest (even if a path is specified).
|
14
16
|
# A sourceReference is only valid for a session, so it must not be used to persist a source.
|
15
17
|
# The value should be less than or equal to 2147483647 (2^31 - 1).
|
16
|
-
property :sourceReference, required: false
|
18
|
+
property :sourceReference, required: false, as: 'number'
|
17
19
|
|
18
20
|
# An optional hint for how to present the source in the UI.
|
19
21
|
# A value of 'deemphasize' can be used to indicate that the source is not available or that it is skipped on stepping.
|
20
22
|
# Values: 'normal', 'emphasize', 'deemphasize', etc.
|
21
|
-
property :presentationHint, required: false
|
23
|
+
property :presentationHint, required: false, as: 'string'
|
22
24
|
|
23
25
|
# The (optional) origin of this source: possible values 'internal module', 'inlined content from source map', etc.
|
24
|
-
property :origin, required: false
|
26
|
+
property :origin, required: false, as: 'string'
|
25
27
|
|
26
28
|
# An optional list of sources that are related to this source. These may be the source that generated this source.
|
27
29
|
property :sources, required: false, as: many(DAP::Source)
|
data/lib/dap/source_arguments.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
require_relative 'source'
|
2
2
|
|
3
|
+
# Arguments for ‘source’ request.
|
3
4
|
class DAP::SourceArguments < DAP::Base
|
4
5
|
# Specifies the source content to load. Either source.path or source.sourceReference must be specified.
|
5
6
|
property :source, required: false, as: DAP::Source
|
6
7
|
|
7
8
|
# The reference to the source. This is the same as source.sourceReference.
|
8
9
|
# This is provided for backward compatibility since old backends do not understand the 'source' attribute.
|
9
|
-
property :sourceReference
|
10
|
+
property :sourceReference, as: 'number'
|
10
11
|
end
|
@@ -1,21 +1,22 @@
|
|
1
|
+
# Properties of a breakpoint or logpoint passed to the setBreakpoints request.
|
1
2
|
class DAP::SourceBreakpoint < DAP::Base
|
2
3
|
# The source line of the breakpoint or logpoint.
|
3
|
-
property :line
|
4
|
+
property :line, as: 'number'
|
4
5
|
|
5
6
|
# An optional source column of the breakpoint.
|
6
|
-
property :column, required: false
|
7
|
+
property :column, required: false, as: 'number'
|
7
8
|
|
8
9
|
# An optional expression for conditional breakpoints.
|
9
10
|
# It is only honored by a debug adapter if the capability 'supportsConditionalBreakpoints' is true.
|
10
|
-
property :condition, required: false
|
11
|
+
property :condition, required: false, as: 'string'
|
11
12
|
|
12
13
|
# An optional expression that controls how many hits of the breakpoint are ignored.
|
13
14
|
# The backend is expected to interpret the expression as needed.
|
14
15
|
# The attribute is only honored by a debug adapter if the capability 'supportsHitConditionalBreakpoints' is true.
|
15
|
-
property :hitCondition, required: false
|
16
|
+
property :hitCondition, required: false, as: 'string'
|
16
17
|
|
17
18
|
# If this attribute exists and is non-empty, the backend must not 'break' (stop)
|
18
19
|
# but log the message instead. Expressions within {} are interpolated.
|
19
20
|
# The attribute is only honored by a debug adapter if the capability 'supportsLogPoints' is true.
|
20
|
-
property :logMessage, required: false
|
21
|
+
property :logMessage, required: false, as: 'string'
|
21
22
|
end
|
@@ -1,7 +1,8 @@
|
|
1
|
+
# Response to ‘source’ request.
|
1
2
|
class DAP::SourceResponseBody < DAP::Base
|
2
3
|
# Content of the source reference.
|
3
|
-
property :content
|
4
|
+
property :content, as: 'string'
|
4
5
|
|
5
6
|
# Optional content type (mime type) of the source.
|
6
|
-
property :mimeType, required: false
|
7
|
+
property :mimeType, required: false, as: 'string'
|
7
8
|
end
|
data/lib/dap/stack_frame.rb
CHANGED
@@ -1,30 +1,31 @@
|
|
1
1
|
require_relative 'source'
|
2
2
|
|
3
|
+
# A Stackframe contains the source location.
|
3
4
|
class DAP::StackFrame < DAP::Base
|
4
5
|
# An identifier for the stack frame. It must be unique across all threads.
|
5
6
|
# This id can be used to retrieve the scopes of the frame with the 'scopesRequest' or to restart the execution of a stackframe.
|
6
|
-
property :id
|
7
|
+
property :id, as: 'number'
|
7
8
|
|
8
9
|
# The name of the stack frame, typically a method name.
|
9
|
-
property :name
|
10
|
+
property :name, as: 'string'
|
10
11
|
|
11
12
|
# The optional source of the frame.
|
12
13
|
property :source, required: false, as: DAP::Source
|
13
14
|
|
14
15
|
# The line within the file of the frame. If source is null or doesn't exist, line is 0 and must be ignored.
|
15
|
-
property :line
|
16
|
+
property :line, as: 'number'
|
16
17
|
|
17
18
|
# The column within the line. If source is null or doesn't exist, column is 0 and must be ignored.
|
18
|
-
property :column
|
19
|
+
property :column, as: 'number'
|
19
20
|
|
20
21
|
# An optional end line of the range covered by the stack frame.
|
21
|
-
property :endLine, required: false
|
22
|
+
property :endLine, required: false, as: 'number'
|
22
23
|
|
23
24
|
# An optional end column of the range covered by the stack frame.
|
24
|
-
property :endColumn, required: false
|
25
|
+
property :endColumn, required: false, as: 'number'
|
25
26
|
|
26
27
|
# Optional memory reference for the current instruction pointer in this frame.
|
27
|
-
property :instructionPointerReference, required: false
|
28
|
+
property :instructionPointerReference, required: false, as: 'string'
|
28
29
|
|
29
30
|
# The module associated with this frame, if any.
|
30
31
|
property :moduleId, required: false
|
@@ -32,5 +33,5 @@ class DAP::StackFrame < DAP::Base
|
|
32
33
|
# An optional hint for how to present this frame in the UI.
|
33
34
|
# A value of 'label' can be used to indicate that the frame is an artificial frame that is used as a visual label or separator. A value of 'subtle' can be used to change the appearance of a frame in a 'subtle' way.
|
34
35
|
# Values: 'normal', 'label', 'subtle', etc.
|
35
|
-
property :presentationHint, required: false
|
36
|
+
property :presentationHint, required: false, as: 'string'
|
36
37
|
end
|
@@ -1,24 +1,25 @@
|
|
1
1
|
require_relative 'value_format'
|
2
2
|
|
3
|
+
# Provides formatting information for a stack frame.
|
3
4
|
class DAP::StackFrameFormat < DAP::ValueFormat
|
4
5
|
# Displays parameters for the stack frame.
|
5
|
-
property :parameters, required: false
|
6
|
+
property :parameters, required: false, as: 'boolean'
|
6
7
|
|
7
8
|
# Displays the types of parameters for the stack frame.
|
8
|
-
property :parameterTypes, required: false
|
9
|
+
property :parameterTypes, required: false, as: 'boolean'
|
9
10
|
|
10
11
|
# Displays the names of parameters for the stack frame.
|
11
|
-
property :parameterNames, required: false
|
12
|
+
property :parameterNames, required: false, as: 'boolean'
|
12
13
|
|
13
14
|
# Displays the values of parameters for the stack frame.
|
14
|
-
property :parameterValues, required: false
|
15
|
+
property :parameterValues, required: false, as: 'boolean'
|
15
16
|
|
16
17
|
# Displays the line number of the stack frame.
|
17
|
-
property :line, required: false
|
18
|
+
property :line, required: false, as: 'boolean'
|
18
19
|
|
19
20
|
# Displays the module of the stack frame.
|
20
|
-
property :module, required: false
|
21
|
+
property :module, required: false, as: 'boolean'
|
21
22
|
|
22
23
|
# Includes all stack frames, including those the debug adapter might otherwise hide.
|
23
|
-
property :includeAll, required: false
|
24
|
+
property :includeAll, required: false, as: 'boolean'
|
24
25
|
end
|
@@ -1,14 +1,15 @@
|
|
1
1
|
require_relative 'stack_frame_format'
|
2
2
|
|
3
|
+
# Arguments for ‘stackTrace’ request.
|
3
4
|
class DAP::StackTraceArguments < DAP::Base
|
4
5
|
# Retrieve the stacktrace for this thread.
|
5
|
-
property :threadId
|
6
|
+
property :threadId, as: 'number'
|
6
7
|
|
7
8
|
# The index of the first frame to return; if omitted frames start at 0.
|
8
|
-
property :startFrame, required: false
|
9
|
+
property :startFrame, required: false, as: 'number'
|
9
10
|
|
10
11
|
# The maximum number of frames to return. If levels is not specified or 0, all frames are returned.
|
11
|
-
property :levels, required: false
|
12
|
+
property :levels, required: false, as: 'number'
|
12
13
|
|
13
14
|
# Specifies details on how to format the stack frames.
|
14
15
|
# The attribute is only honored by a debug adapter if the capability 'supportsValueFormattingOptions' is true.
|
@@ -1,10 +1,11 @@
|
|
1
1
|
require_relative 'stack_frame'
|
2
2
|
|
3
|
+
# Response to ‘stackTrace’ request.
|
3
4
|
class DAP::StackTraceResponseBody < DAP::Base
|
4
5
|
# The frames of the stackframe. If the array has length zero, there are no stackframes available.
|
5
6
|
# This means that there is no location information available.
|
6
7
|
property :stackFrames, as: many(DAP::StackFrame)
|
7
8
|
|
8
9
|
# The total number of frames available.
|
9
|
-
property :totalFrames, required: false
|
10
|
+
property :totalFrames, required: false, as: 'number'
|
10
11
|
end
|
@@ -1,8 +1,9 @@
|
|
1
1
|
require_relative 'stepping_granularity'
|
2
2
|
|
3
|
+
# Arguments for ‘stepBack’ request.
|
3
4
|
class DAP::StepBackArguments < DAP::Base
|
4
5
|
# Execute 'stepBack' for this thread.
|
5
|
-
property :threadId
|
6
|
+
property :threadId, as: 'number'
|
6
7
|
|
7
8
|
# Optional granularity to step. If no granularity is specified, a granularity of 'statement' is assumed.
|
8
9
|
property :granularity, required: false, as: DAP::SteppingGranularity
|
@@ -1,11 +1,12 @@
|
|
1
1
|
require_relative 'stepping_granularity'
|
2
2
|
|
3
|
+
# Arguments for ‘stepIn’ request.
|
3
4
|
class DAP::StepInArguments < DAP::Base
|
4
5
|
# Execute 'stepIn' for this thread.
|
5
|
-
property :threadId
|
6
|
+
property :threadId, as: 'number'
|
6
7
|
|
7
8
|
# Optional id of the target to step into.
|
8
|
-
property :targetId, required: false
|
9
|
+
property :targetId, required: false, as: 'number'
|
9
10
|
|
10
11
|
# Optional granularity to step. If no granularity is specified, a granularity of 'statement' is assumed.
|
11
12
|
property :granularity, required: false, as: DAP::SteppingGranularity
|
data/lib/dap/step_in_target.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
# A StepInTarget can be used in the ‘stepIn’ request and determines into which
|
2
|
+
# single target the stepIn request should step.
|
1
3
|
class DAP::StepInTarget < DAP::Base
|
2
4
|
# Unique identifier for a stepIn target.
|
3
|
-
property :id
|
5
|
+
property :id, as: 'number'
|
4
6
|
|
5
7
|
# The name of the stepIn target (shown in the UI).
|
6
|
-
property :label
|
8
|
+
property :label, as: 'string'
|
7
9
|
end
|