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

#byebugObject Also known as: debugger



37
38
39
# File 'lib/byebug/attacher.rb', line 37

def byebug
  Byebug.attach
end

#remote_byebug(host = "localhost", port = nil) ⇒ Object



41
42
43
44
45
# File 'lib/byebug/attacher.rb', line 41

def remote_byebug(host = "localhost", port = nil)
  Byebug.spawn(host, port)

  Byebug.attach
end