Module: Kernel

Defined in:
lib/byebug.rb

Instance Method Summary collapse

Instance Method Details

#byebug(steps_into = 1, steps_out = 2) ⇒ Object

Enters byebug after steps_into line events and steps_out return events occur. Before entering byebug startup, the init script is read.



248
249
250
251
252
253
# File 'lib/byebug.rb', line 248

def byebug(steps_into = 1, steps_out = 2)
  Byebug.start
  Byebug.run_init_script(StringIO.new)
  Byebug.context.stop_return steps_out if steps_out >= 1
  Byebug.context.step_into steps_into if steps_into >= 0
end