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
- #byebug ⇒ Object (also: #debugger)
- #remote_byebug(host = "localhost", port = nil) ⇒ Object
Instance Method Details
#byebug ⇒ Object Also known as: debugger
35 36 37 38 39 |
# File 'lib/byebug/attacher.rb', line 35 def byebug require_relative "core" Byebug.attach unless Byebug.mode == :off 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 |