Full backtrace for SystemStackError
When debugging "SystemStackError: stack level too deep" exceptions, it is not helpful that the backtrace is reduced to one single line. Most of the time Ruby incorrectly identifies where cycles begin, resulting in an unrelated "file:line" as the backtrace.
Example:
gems/equalizer-0.0.7/lib/equalizer.rb:57: stack level too deep (SystemStackError)
If you want Ruby to print the whole backtrace, you need to patch it. Here is the patch
Install it (RVM):
$ rvm reinstall you-ruby-version --patch /path/to/stack-overflow.patch
Written by Anton Kalyaev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#