我刚收到错误消息:
... from c:/ruby/lib/ruby/gems/1.8/gems/... ... 10 levels... from c:/ruby/lib/ruby/gems/1.8/gems/... ...
当然,窃听器藏在 ... 10 levels... .
... 10 levels...
如何强制Ruby显示完整的堆栈跟踪?
begin # code that raises exception rescue StandardError => e puts e.backtrace end