Class: DSP::SetExceptionBreakpointsArguments
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface SetExceptionBreakpointsArguments {
/** IDs of checked exception options. The set of IDs is returned via the 'exceptionBreakpointFilters' capability. */
filters: string[];
/** Configuration options for selected exceptions.
The attribute is only honored by a debug adapter if the capability 'supportsExceptionOptions' is true.
*/
exceptionOptions?: ExceptionOptions[];
}
Instance Attribute Summary collapse
-
#exceptionOptions ⇒ Object
type: string[] # type: ExceptionOptions[].
-
#filters ⇒ Object
type: string[] # type: ExceptionOptions[].
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ SetExceptionBreakpointsArguments
constructor
A new instance of SetExceptionBreakpointsArguments.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ SetExceptionBreakpointsArguments
Returns a new instance of SetExceptionBreakpointsArguments.
1548 1549 1550 1551 |
# File 'lib/dsp/dsp_protocol.rb', line 1548 def initialize(initial_hash = nil) super @optional_method_names = %i[exceptionOptions] end |
Instance Attribute Details
#exceptionOptions ⇒ Object
type: string[] # type: ExceptionOptions[]
1546 1547 1548 |
# File 'lib/dsp/dsp_protocol.rb', line 1546 def exceptionOptions @exceptionOptions end |
#filters ⇒ Object
type: string[] # type: ExceptionOptions[]
1546 1547 1548 |
# File 'lib/dsp/dsp_protocol.rb', line 1546 def filters @filters end |
Instance Method Details
#from_h!(value) ⇒ Object
1553 1554 1555 1556 1557 1558 |
# File 'lib/dsp/dsp_protocol.rb', line 1553 def from_h!(value) value = {} if value.nil? self.filters = value['filters'].map { |val| val } unless value['filters'].nil? self.exceptionOptions = to_typed_aray(value['exceptionOptions'], ExceptionOptions) self end |