Class: Canopus::Breakpoints

Inherits:
Object
  • Object
show all
Defined in:
sig/debug.rbs

Defined Under Namespace

Classes: Entry

Constant Summary collapse

VERSION =

Returns:

  • (Integer)
RELATIVE_PATH =

Returns:

  • (String)
MAX_BYTES =

Returns:

  • (Integer)
MAX_ENTRIES =

Returns:

  • (Integer)
MAX_PATH_BYTES =

Returns:

  • (Integer)
MAX_CONDITION_BYTES =

Returns:

  • (Integer)
MAX_HIT_CONDITION_BYTES =

Returns:

  • (Integer)
MAX_LOG_MESSAGE_BYTES =

Returns:

  • (Integer)
MAX_LINE =

Returns:

  • (Integer)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Breakpoints

Returns a new instance of Breakpoints.

Parameters:

  • root: (String)


47
# File 'sig/debug.rbs', line 47

def initialize: (root: String) ?{ (String) -> void } -> void

Instance Attribute Details

#entries ⇒ Array[Entry] (readonly)

Returns the value of attribute entries.

Returns:



45
46
47
# File 'sig/debug.rbs', line 45

def entries
  @entries
end

#root ⇒ String (readonly)

Returns the value of attribute root.

Returns:

  • (String)


44
45
46
# File 'sig/debug.rbs', line 44

def root
  @root
end

Instance Method Details

#add ⇒ Entry

Parameters:

  • path (String)
  • line (Integer)
  • condition: (String, nil)
  • hit_condition: (String, nil)
  • log_message: (String, nil)
  • enabled: (Boolean)

Returns:



49
# File 'sig/debug.rbs', line 49

def add: (String path, Integer line, ?condition: String?, ?hit_condition: String?, ?log_message: String?, ?enabled: bool) -> Entry

#attach ⇒ self

Parameters:

Returns:

  • (self)


53
# File 'sig/debug.rbs', line 53

def attach: (Canopus::Buffer buffer) -> self

#close ⇒ nil

Returns:

  • (nil)


55
# File 'sig/debug.rbs', line 55

def close: () -> nil

#detach ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


54
# File 'sig/debug.rbs', line 54

def detach: (Canopus::Buffer buffer) -> bool

#error ⇒ StandardError?

Returns:

  • (StandardError, nil)


57
# File 'sig/debug.rbs', line 57

def error: () -> StandardError?

#flush ⇒ self

Returns:

  • (self)


56
# File 'sig/debug.rbs', line 56

def flush: () -> self

#for_path ⇒ Array[Entry]

Parameters:

  • path (String)

Returns:



48
# File 'sig/debug.rbs', line 48

def for_path: (String path) -> Array[Entry]

#remove ⇒ Boolean

Parameters:

  • path (String)
  • line (Integer)

Returns:

  • (Boolean)


50
# File 'sig/debug.rbs', line 50

def remove: (String path, Integer line) -> bool

#toggle ⇒ Entry?

Parameters:

  • path (String)
  • line (Integer)
  • condition: (String, nil)
  • hit_condition: (String, nil)
  • log_message: (String, nil)
  • enabled: (Boolean)

Returns:



51
# File 'sig/debug.rbs', line 51

def toggle: (String path, Integer line, ?condition: String?, ?hit_condition: String?, ?log_message: String?, ?enabled: bool) -> Entry?

#update ⇒ Entry

Parameters:

  • path (String)
  • line (Integer)
  • new_line: (Integer)
  • condition: (String, nil)
  • hit_condition: (String, nil)
  • log_message: (String, nil)
  • enabled: (Boolean)

Returns:



52
# File 'sig/debug.rbs', line 52

def update: (String path, Integer line, ?new_line: Integer, ?condition: String?, ?hit_condition: String?, ?log_message: String?, ?enabled: bool) -> Entry