From: Robert Klemme Date: 2005-08-11T17:16:10+09:00 Subject: Re: Bindings at the time of Exceptions Adam Sanderson wrote: > I always thought it would be neat to be able to get the binding at the > time an exception was raised so that one could see the state the stack > was in when an exception occurred. Note, that you can view the stack trace already with standard means: 10:11:06 [c]: ruby -e 'def f() raise "error" end; begin;f;rescue Exception => e; puts e.backtrace; end' -e:1:in `f' -e:1 > It would be nice list the local variables and values at the time of > the exception for instance. Can anyone think of some trickery to do > this? I think it would be of great use for debugging and whatnot, and > massive points for cool ruby hackery ;) > .adam sanderson See Joel's solution. Kind regards robert