我从Rails 3.0迁移到3.2.
SystemStackError in UserController#show stack level too deep SystemStackError (stack level too deep): activesupport (3.2.1) lib/active_support/callbacks.rb:415 Rendered /home/barbacan/.rvm/gems/ruby-1.9.2-head/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (55.3ms) Rendered /home/barbacan/.rvm/gems/ruby-1.9.2-head/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (4.0ms) Rendered /home/barbacan/.rvm/gems/ruby-1.9.2-head/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (61.4ms)
日志不详细.
回调中会出现此问题:它是动态代码,并且很难调试.
您是否了解可帮助我调试和查找此问题根源的工具或方法?
谢谢!
编辑:
解决方法
您可以尝试在
http://railscasts.com/episodes/280-pry-with-rails使用
Pry和railscast,然后您可以在可能的位置设置断点并手动逐步执行.