From: ts Date: 2003-06-20T02:00:27+09:00 Subject: Re: rescue + stack trace >>>>> "O" == Orion Hunter writes: O> However, I do not know how to capture the stack trace. Is there a variable O> (like the $! variable for the error message), which contains a reference to O> the stack trace that I would get if I were not catching these errors? This ? pigeon% ruby -e 'def a() raise "aaa"; end; a rescue p $!.backtrace' ["-e:1:in `a'", "-e:1"] pigeon% Guy Decoux