Then, sometimes, defining
set_trace_func
comes handy:
set_trace_func lambda { |event, file, line, id, binding, classname|
if(event=="raise")
puts "=" * 40
puts "%8s :%-2d %5s %8s" % [event, line, id, classname]
end
}
UPDATE
another interesting gem for this purpose is Unroller
No comments:
Post a Comment