From: Robert Klemme Date: 2003-11-26T23:52:12+09:00 Subject: Re: Backtrace without skips needed "Zoran Lazarevic" schrieb im Newsbeitrag news:32c0bb6a.0311260632.1f53c93e@posting.google.com... > > Is there a way to tell ruby that it must never skip levels in the > > You might want to enclose your 'main' into begin/rescue/end and print > the stacktrace for yourself > > begin > main # main raises an exception, e.g. 1/0 > rescue > caller.each{|x| p x} > end I'm afraid, that won't output the interesting part, namely the stack levels *below* this method that make it possible to find the source of the exception. Regards robert