On Sat, Sep 14, 2002 at 05:11:29AM +0900, Chris Morris wrote:
> I've got a script that loops through a bunch of stuff and somewhere in the
> middle (not the same place each time) it's hanging.
> 
> Is there a quick way to hook each method call so I can output the method
> name to stdout so I can see the last method called before the hang?
> Debugging won't work well -- I'd have to step through every line numerous
> times until it just happened to hang wherever it does, and I have no idea if
> the debugging environ would affect it.

The simplest solution is to use:
  require 'tracer'

but that might give you more output than you want.

Paul