From: Alex Young Date: 2007-11-12T06:49:39+09:00 Subject: Re: Hiding backtrace with "x levels" Robert Klemme wrote: > On 11.11.2007 22:22, Brian Takita wrote: >> I must say hiding the backtrace with x levels is a major annoyance. >> I know the "solution" is to "simply put begin/rescue around the >> error", but thats asinine. > > Since when is proper error handling "asinine"? > >> I noticed that the code that does this is deep in ruby's C >> implementation. >> Has anybody made ruby show the entire backtrace? I guess I could on my >> machine, but I'd rather not have to change the C code. > > Then just do it in Ruby code - you even know the implementation already. > >> Can this be resolved Ruby 1.9, if it is not already? > > I can only speculate about the reasons for the current implementation > (for example, to not clutter logfiles with the default stack dump) but I > find the grounds on which you request a change which potentially affects > the whole community very weak. I obviously can't speak for the OP, but I'd find a command-line option to switch the console stack dump to full depth very handy. -- Alex