Sha256: 02d969dd6ac6b1464e2321137e3ba37b95607fb16045abe1e1bdbe96df2c83b2

Contents?: true

Size: 603 Bytes

Versions: 17

Compression:

Stored size: 603 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
    require 'byebug/core'

    unless started?
      self.mode = :attached

      start
      run_init_script
    end

    current_context.step_out(3, true)
  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
    Byebug.attach
  end

  alias debugger byebug
end

Version data entries

17 entries across 16 versions & 3 rubygems

Version Path
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/byebug-9.1.0/lib/byebug/attacher.rb
tdiary-5.0.6 vendor/bundle/gems/byebug-9.1.0/lib/byebug/attacher.rb
byebug-9.1.0 lib/byebug/attacher.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/byebug-9.0.6/lib/byebug/attacher.rb
tdiary-5.0.5 vendor/bundle/gems/byebug-9.0.6/lib/byebug/attacher.rb
tdiary-5.0.4 vendor/bundle/gems/byebug-9.0.6/lib/byebug/attacher.rb
byebug-9.0.6 lib/byebug/attacher.rb
byebug-9.0.5 lib/byebug/attacher.rb
byebug-9.0.4 lib/byebug/attacher.rb
byebug-9.0.3 lib/byebug/attacher.rb
byebug-9.0.2 lib/byebug/attacher.rb
byebug-9.0.1 lib/byebug/attacher.rb
byebug-9.0.0 lib/byebug/attacher.rb
byebug-8.2.5 lib/byebug/attacher.rb
byebug-8.2.4 lib/byebug/attacher.rb
byebug-8.2.3 lib/byebug/attacher.rb
byebug-8.2.2 lib/byebug/attacher.rb