From: bbense+comp.lang.ruby.Sep.18.02@... Date: 2002-09-19T08:38:09+09:00 Subject: Re: Dump each method called to stdout? -----BEGIN PGP SIGNED MESSAGE----- In article <20020913171222.E26613@atdesk.com>, Paul Brannan wrote: >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. > - - ruby -r tracer rubyfile does the same thing. - - Booker C. Bense -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBPYkLMGTWTAjn5N/lAQGaxgP+OmIbJiYCh/lw+PeIcTtRk7T0zcMk19qF i6s21KcHzcmGBJ8MX21W5gkk/CTaBBWYkrOe8tJEELTzHN/Goj7pqqI5vtiK25Il TPpqNzFH4UFl6QHsC83t2acoakl7bU7v9O3SVD9sTJCAKq94zzL7YYefwMRoVCV9 iIVV6jAuuuc= =aheK -----END PGP SIGNATURE-----