Class: DSP::SourceBreakpoint
Overview
interface SourceBreakpoint
/** The source line of the breakpoint or logpoint. */
line: number;
/** An optional source column of the breakpoint. */
column?: number;
/** An optional expression for conditional breakpoints.
It is only honored by a debug adapter if the capability 'supportsConditionalBreakpoints' is true.
*/
condition?: string;
/** An optional expression that controls how many hits of the breakpoint are ignored.
The backend is expected to interpret the expression as needed.
The attribute is only honored by a debug adapter if the capability 'supportsHitConditionalBreakpoints' is true.
*/
hitCondition?: string;
/** If this attribute exists and is non-empty, the backend must not 'break' (stop)
but log the message instead. Expressions within { are interpolated.
The attribute is only honored by a debug adapter if the capability 'supportsLogPoints' is true.
*/
logMessage?: string;
}
Instance Attribute Summary collapse
-
#column ⇒ Object
type: number # type: number # type: string # type: string # type: string.
-
#condition ⇒ Object
type: number # type: number # type: string # type: string # type: string.
-
#hitCondition ⇒ Object
type: number # type: number # type: string # type: string # type: string.
-
#line ⇒ Object
type: number # type: number # type: string # type: string # type: string.
-
#logMessage ⇒ Object
type: number # type: number # type: string # type: string # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ SourceBreakpoint
constructor
A new instance of SourceBreakpoint.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ SourceBreakpoint
Returns a new instance of SourceBreakpoint.
4190 4191 4192 4193 |
# File 'lib/dsp/dsp_protocol.rb', line 4190 def initialize(initial_hash = nil) super @optional_method_names = %i[column condition hitCondition logMessage] end |
Instance Attribute Details
#column ⇒ Object
type: number # type: number # type: string # type: string # type: string
4188 4189 4190 |
# File 'lib/dsp/dsp_protocol.rb', line 4188 def column @column end |
#condition ⇒ Object
type: number # type: number # type: string # type: string # type: string
4188 4189 4190 |
# File 'lib/dsp/dsp_protocol.rb', line 4188 def condition @condition end |
#hitCondition ⇒ Object
type: number # type: number # type: string # type: string # type: string
4188 4189 4190 |
# File 'lib/dsp/dsp_protocol.rb', line 4188 def hitCondition @hitCondition end |
#line ⇒ Object
type: number # type: number # type: string # type: string # type: string
4188 4189 4190 |
# File 'lib/dsp/dsp_protocol.rb', line 4188 def line @line end |
#logMessage ⇒ Object
type: number # type: number # type: string # type: string # type: string
4188 4189 4190 |
# File 'lib/dsp/dsp_protocol.rb', line 4188 def logMessage @logMessage end |
Instance Method Details
#from_h!(value) ⇒ Object
4195 4196 4197 4198 4199 4200 4201 4202 4203 |
# File 'lib/dsp/dsp_protocol.rb', line 4195 def from_h!(value) value = {} if value.nil? self.line = value['line'] self.column = value['column'] self.condition = value['condition'] self.hitCondition = value['hitCondition'] self.logMessage = value['logMessage'] self end |