From: Brian Candler Date: 2003-07-03T06:57:48+09:00 Subject: Re: More error backtrace On Thu, Jul 03, 2003 at 06:43:03AM +0900, Nigel Gilbert wrote: > What I need to know are which lines of code are represented by "... 6 > levels...". Is there any way of stopping ruby from abbreviating the > backtrace like this? in eval.c: #define TRACE_MAX (TRACE_HEAD+TRACE_TAIL+5) #define TRACE_HEAD 8 #define TRACE_TAIL 5 So you could change those constants. But easier, wrap your code in something like this: begin ... do your code rescue Exception => e puts "#{e} (#{e.class})\n#{e.backtrace.join("\n")}" end Regards, Brian.