From: Seth Kurtzberg Date: 2003-02-26T16:05:53+09:00 Subject: Re: Debugger Not Working It may, I'll try it, but it really doesn't do much good even if it does work. I was expecting something like ClassName::MethodName For example, take this class structure: class A def methodName . . end end class B < A def methodName . . end end How can a breakpoint be set at B::methodName? On Tuesday 25 February 2003 11:04 pm, NAKAMURA, Hiroshi wrote: > Hi, Seth, > > > From: Seth Kurtzberg [mailto:seth@cql.com] > > Sent: Wednesday, February 26, 2003 12:40 PM > > > > It is working now with line numbers. What is the syntax for > > breaking at a method? > > Does "(filename:)method_name" not work for you? > > nakahiro@RUBY ~/test > $ cat foo.rb > def foo > bar > end > > def bar > > :bar > > end > > p foo > > nakahiro@RUBY ~/test > $ ruby -rdebug foo.rb > Debug.rb > Emacs support available. > > foo.rb:1:def foo > (rdb:1) break ../test/foo.rb:foo > Set breakpoint 1 at foo.rb:foo > (rdb:1) break bar > Set breakpoint 2 at foo.rb:bar > (rdb:1) cont > Breakpoint 1, foo at foo.rb:foo > foo.rb:1:def foo > (rdb:1) cont > Breakpoint 2, bar at foo.rb:bar > foo.rb:5:def bar > (rdb:1) finish > > :bar > > nakahiro@RUBY ~/test > $ > > Regards, > // NaHi -- Seth Kurtzberg M. I. S. Corp. 480-661-1849 seth@cql.com