Class: Byebug::RibProcessor

Inherits:
CommandProcessor
  • Object
show all
Defined in:
lib/rib/extra/byebug.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.startObject



47
48
49
50
51
52
53
# File 'lib/rib/extra/byebug.rb', line 47

def self.start
  Byebug.start
  Setting[:autolist] = false
  Context.processor = self
  steps = caller.index{ |path| !path.start_with?(__FILE__) }
  Byebug.current_context.step_out(steps + 2, true)
end

Instance Method Details

#at_breakpoint(breakpoint) ⇒ Object

Raises:

  • (NotImplementedError)


67
68
69
# File 'lib/rib/extra/byebug.rb', line 67

def at_breakpoint(breakpoint)
  raise NotImplementedError
end

#at_endObject



63
64
65
# File 'lib/rib/extra/byebug.rb', line 63

def at_end
  resume_rib
end

#at_lineObject



55
56
57
# File 'lib/rib/extra/byebug.rb', line 55

def at_line
  resume_rib
end

#at_return(_return_value) ⇒ Object



59
60
61
# File 'lib/rib/extra/byebug.rb', line 59

def at_return(_return_value)
  resume_rib
end

#locationObject



71
72
73
# File 'lib/rib/extra/byebug.rb', line 71

def location
  context.location
end