From: Hugh Sasse Staff Elec Eng Date: 2003-11-26T23:10:32+09:00 Subject: Re: Backtrace without skips needed On Wed, 26 Nov 2003, Yukihiro Matsumoto wrote: > |Is there a way to tell ruby that it must never skip levels in the > |backtrace like this: > > begin > foo > rescue => e > cb = e.backtrace > print cb.shift, ":", e.message, "\n" > cb.each{|c| print "\tfrom ", c, "\n"} > exit 1 > end > > matz. > I, for one, won't remember this when I need it, so may I suggest that this be wrapped for convenience in a standard method, so we can do begin foo rescue => e e.full_backtrace # or some other name exit 1 end in some near-future ruby, please? Thank you, Hugh