Sha256: 096bbe359950fe1d1d15ea2fc2a818920f4bd6e6dfa199bb506824d2cb4098f2

Contents?: true

Size: 359 Bytes

Versions: 9

Compression:

Stored size: 359 Bytes

Contents

# !/usr/bin/env ruby
# Bug in debugger stopping where we were inside debugger was stopping
# inside itself because multiple debugger names in the presence of modules
# 
require_relative '../../lib/trepanning'
module Foo
  module_function
  def five
    debugger  # Resolves to Module#debugger not Kernel#debugger
    5
  end
end
debugger(:nx=>true)
Foo::five

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trepanning-2.15.35 test/example/debugger-stop.rb
trepanning-1.93.35 test/example/debugger-stop.rb
trepanning-2.15.33 test/example/debugger-stop.rb
trepanning-1.93.32 test/example/debugger-stop.rb
trepanning-0.1.6 test/example/debugger-stop.rb
trepanning-0.1.4 test/example/debugger-stop.rb
trepanning-0.1.3 test/example/debugger-stop.rb
trepanning-0.1.2 test/example/debugger-stop.rb
trepanning-0.1.1 test/example/debugger-stop.rb