From: nobu.nokada@... Date: 2002-03-15T19:54:27+09:00 Subject: Re: Debugger problem Hi, At Fri, 15 Mar 2002 18:57:30 +0900, NAKAMURA, Hiroshi wrote: > > > 6 set_trace_func proc { |event, file, line, id, binding, > klass, *rest| > > > 7 DEBUGGER__.context.trace_func event, file, line, id, > binding, klass > > > 8 } if $DEBUG > > > > Shorter, this may also work? > > > > set_trace_func DEBUGGER__.context.method(:trace_func) if $DEBUG > > trace_func needs to be a Proc... Oops, set_trace_func DEBUGGER__.context.method(:trace_func).to_proc if $DEBUG -- Nobu Nakada