Sha256: cae896a5fe1d1d7241a9557bb933923bda8653eabb3f92df0245ee4aabf45b3d
Contents?: true
Size: 632 Bytes
Versions: 4
Compression:
Stored size: 632 Bytes
Contents
# # Main Container for all of Byebug's code # module Byebug # # Enters byebug right before (or right after if _before_ is false) return # events occur. Before entering byebug the init script is read. # def self.attach(steps_out, before) setup_cmd_line_args start run_init_script current_context.step_out(steps_out, before) end end # # Adds a `byebug` method to the Kernel module. # # Dropping a `byebug` call anywhere in your code, you get a debug prompt. # module Kernel def byebug(steps_out = 1, before = true) Byebug.attach(steps_out + 1, before) end alias_method :debugger, :byebug end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
byebug-4.0.3 | lib/byebug/attacher.rb |
byebug-4.0.2 | lib/byebug/attacher.rb |
byebug-4.0.1 | lib/byebug/attacher.rb |
byebug-4.0.0 | lib/byebug/attacher.rb |