From: "NAKAMURA, Hiroshi" Date: 2002-10-17T17:09:13+09:00 Subject: Re: Is the debugger broken? Hi, > From: Gavin Sinclair [mailto:gsinclair@soyabean.com.au] > Sent: Wednesday, October 16, 2002 11:09 PM > > It is expected behaviour because the current debugger does > > not trace 'require' c-call and c-return. For workaround, > > set bp at the next line of require and go. Here is another workaround for debug.rb in 1.6 althourgh I don't want to commit such an ad-hoc code in the source. --- /usr/local/lib/ruby/1.6/debug.rb 2002-04-01 22:16:16.000000000 +0900 +++ debug.rb 2002-10-17 16:58:34.000000000 +0900 @@ -716,5 +716,18 @@ EOHELP when 'c-call' - frame_set_pos(file, line) + if id == :require and klass == Kernel + @frames.unshift [binding, file, line, id] + else + frame_set_pos(file, line) + end + + when 'c-return' + if id == :require and klass == Kernel + if @frames.size == @finish_pos + @stop_next = 1 + @finish_pos = 0 + end + @frames.shift + end when 'class' > > // NaHi > > SiGa :) Found a crowd. :) Regards, // NAKAMURA, Hiroshi, aka NaHi or nakahiro