Class: DSP::SourceBreakpoint

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

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

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

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

#columnObject

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

#conditionObject

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

#hitConditionObject

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

#lineObject

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

#logMessageObject

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