Sys Ppp wrote: >> $ rdebug r2test.rb >> /Users/me/2testing/dir1/r2test.rb:1 >> require 'rubygems' >> >> (rdb:1) break A.show >> *** Unknown class A. >> > It is normal. Because class A is not defined at this point yet. In case > when rdebug is lauched, it stops at the first line. But it is possible > to set break at any line of source by line number. > In your opinion, what does the rest of the debug session do? > But why ruby-debug does not stop at class-methods when class is already > loaded, though it stops at instance-methods? The debugger won't stop at instance methods for me: ------- require 'rubygems' require 'ruby-debug' class A def initialize end def A.show puts "A" end def sayhi puts "hello" end end debugger puts "pausing here" a = A.new a.sayhi A.show ---------- $ ruby r2test.rb r2test.rb:18 puts "pausing here" (rdb:1) break a.sayhi *** Unknown class a. (rdb:1) break sayhi *** Invalid breakpoint location: sayhi. (rdb:1) -- Posted via http://www.ruby-forum.com/.