Module: Kernel
- Defined in:
- lib/byebug.rb
Instance Method Summary collapse
-
#byebug(steps_into = 1, steps_out = 2) ⇒ Object
(also: #debugger)
Enters byebug after steps_into line events and steps_out return events occur.
Instance Method Details
#byebug(steps_into = 1, steps_out = 2) ⇒ Object Also known as: debugger
Enters byebug after steps_into line events and steps_out return events occur. Before entering byebug startup, the init script is read.
190 191 192 193 194 195 196 197 |
# File 'lib/byebug.rb', line 190 def byebug(steps_into = 1, steps_out = 2) Byebug.start Byebug.run_init_script(StringIO.new) if Byebug.current_context.calced_stack_size > 2 Byebug.current_context.stop_return steps_out if steps_out >= 1 end Byebug.current_context.step_into steps_into if steps_into >= 0 end |