From: nathaniel@... Date: 2002-12-08T04:06:51+09:00 Subject: Re: [RCR] Accessor for trace_func Paul Brannan [mailto:pbrannan@atdesk.com] wrote: > > I thought about this solution, and even played with it, but it doesn't > > work at all for my case: the debugger sets its trace_func long before > > I get a change to redefine the method. > > With: > > http://rm-f.net/~cout/code/ruby/treasures/RubyTreasures-0.4/lib/hacks/fi x_trace_func.rb.html > > I can write: > ruby -rfix_trace_func -rtracer -rcrimson_profiler test.rb > > and I get both tracing and profiling. I had to use a slightly modified > profiler to get this to work, but I can't remember why at the moment. I know it would work if I made the user require a fix before requiring the debugger, but that just doesn't seem right. As a user myself, I want this to work: ruby -rdebug my_tests.rb Nathaniel <:((>< + - - | RoleModel Software, Inc. | EQUIP VI