From: 7stud -- Date: 2009-08-24T12:02:17+09:00 Subject: Re: ruby-debug does not hit breakpoints at class-methods ...or I guess this would be a better example: ---------- require 'rubygems' require 'ruby-debug' class A def initialize end def A.show puts "A" end def sayhi puts "hello" end end a = A.new debugger puts "pausing here" puts "hello" puts "world" a.sayhi A.show puts "the end" ----------- $ ruby r2test.rb r2test.rb:21 puts "pausing here" (rdb:1) list [16, 25] in r2test.rb 16 17 18 a = A.new 19 20 debugger => 21 puts "pausing here" 22 23 puts "hello" 24 puts "world" 25 (rdb:1) break a.sayhi *** Unknown class a. (rdb:1) break sayhi *** Invalid breakpoint location: sayhi. (rdb:1) break A.show Breakpoint 1 at A::show (rdb:1) continue pausing here hello world hello A the end -- Posted via http://www.ruby-forum.com/.