Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[ANN] ruby "better" unhandled exception output.
Roger Pack
1/11/2009 5:34:00 AM
Inspired by some blog post, unroller, Tracer, and Python, I bring you.
backtracer
why: the default unhandled exception screen output is somewhat sparse:
ex:
ruby crash.rb
crash.rb:6:in `go2': unhandled exception
from crash.rb:11:in `go'
from crash.rb:15
The new backtracer, however:
ruby -rbacktracer crash.rb
unhandled exception: crash.rb:6: raise
locals: {"a"=>"3", "b"=>3, "within_go2"=>4}
from:
crash.rb:1 go2(a=>3, b=>55)
locals: {"a"=>"3", "b"=>3, "within_go2"=>4}
crash.rb:8 go(a=>3)
locals: {"a"=>"3", "within_go"=>2}
How to use:
# copy backtracer.rb to pwd from
http://github.com/rogerdpack/ruby_backtracer/t...
gem install ruby-debug # if you don't have it installed
then run as ruby -rbacktracer script_name
Sorry it's not a gem yet, should be by next week.
Feedback welcome.
Enjoy!
-=r
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] ruby "better" unhandled exception output.
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password