A
Alexey Verkhovsky
Below is a typical Rails exception thrown from within functional tests.
The interesting part of this exception (test and application code) is
precisely within "... 18 levels..." that are hidden by the interpreter.
Is there any good way to convince Ruby to print full stack trace?
Alex
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_view/abstract_template.rb:40:in `render_file': ActionView::TemplateError (ActionView::TemplateError)
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/layout.rb:139:in `render'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/base.rb:269:in `render_action'
from
/../../config/environments/../../app/controllers/person_controller.rb:42:in `create'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/base.rb:552:in `send'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/base.rb:552:in `perform_action_without_benchmark'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/benchmarking.rb:30:in `perform_action_without_filters'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/benchmarking.rb:30:in `measure'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/benchmarking.rb:30:in `perform_action_without_filters'
... 18 levels...
from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:185:in
`run'
from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run'
from /usr/local/lib/ruby/1.8/test/unit.rb:283
from /usr/local/lib/ruby/1.8/test/unit.rb:283
The interesting part of this exception (test and application code) is
precisely within "... 18 levels..." that are hidden by the interpreter.
Is there any good way to convince Ruby to print full stack trace?
Alex
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_view/abstract_template.rb:40:in `render_file': ActionView::TemplateError (ActionView::TemplateError)
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/layout.rb:139:in `render'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/base.rb:269:in `render_action'
from
/../../config/environments/../../app/controllers/person_controller.rb:42:in `create'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/base.rb:552:in `send'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/base.rb:552:in `perform_action_without_benchmark'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/benchmarking.rb:30:in `perform_action_without_filters'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/benchmarking.rb:30:in `measure'
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_controller/benchmarking.rb:30:in `perform_action_without_filters'
... 18 levels...
from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:185:in
`run'
from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run'
from /usr/local/lib/ruby/1.8/test/unit.rb:283
from /usr/local/lib/ruby/1.8/test/unit.rb:283