Module: Kernel

Defined in:
lib/byebug/attacher.rb

Overview

Adds a `byebug` method to the Kernel module.

Dropping a `byebug` call anywhere in your code, you get a debug prompt.

Instance Method Summary collapse

Instance Method Details

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


25
26
27
# File 'lib/byebug/attacher.rb', line 25

def byebug(steps_out = 1, before = true)
  Byebug.attach(steps_out + 1, before)
end