Module: Kernel

Defined in:
lib/byebug.rb

Instance Method Summary collapse

Instance Method Details

#byebug(steps_out = 1, before = true) ⇒ Object Also known as: debugger

Enters byebug right before (or right after if before is false) return events occur. Before entering byebug the init script is read.



138
139
140
141
142
# File 'lib/byebug.rb', line 138

def byebug(steps_out = 1, before = true)
  Byebug.run_init_script(StringIO.new)
  Byebug.start
  Byebug.current_context.step_out(steps_out, before)
end