[Yarv-devel] backtrace format

SASADA Koichi ko1 at atdot.net
Fri Jul 29 06:42:52 EDT 2005


Hi,

Daniel Amelang wrote:
> I like it. You could avoid the 'block in block in block in' thing with
> a simple 'block (3 deep) in' or 'block in (3x)' or 'block (3 levels)
> in' or something like it.

I try it.

def iter
  yield
end

begin
  iter{
    iter{
      iter{
        raise
      }
    }
  }
rescue => e
  puts e.backtrace
end


#=>
../test.rb:19:in `raise'
../test.rb:19:in `block (3 levels) in <main>'
../test.rb:12:in `iter'
../test.rb:18:in `block (2 levels) in <main>'
../test.rb:12:in `iter'
../test.rb:17:in `block in <main>'
../test.rb:12:in `iter'
../test.rb:16:in `<main>'

How about it?


> While you're looking at backtraces I'm sure you've seen the sydney
> approach to backtraces::
> 
> http://blog.fallingsnow.net/articles/2005/07/11/sydney-developer-preview-release-1-out
> 
> which was well received. Something to consider.

I have only viewed it. Could you show me sample one?

-- 
// SASADA Koichi at atdot dot net
//



More information about the Yarv-devel mailing list