Better Errors Gem: Debugging Rails apps with the browser
Diego Peralta / over 9 years ago
1 min read • ––– views
In my particular case, when I'm programming application based on Ruby on Rails, the browser doesn't offer me too much information when an error happens. That's where Better Errors comes to the rescue.
Better Errors is a gem developed by Charlie Somerville, and it purpose its to replace the classic built-in error page provided by Rails for something more interactive and usable, and adds some cool functionality like:
- Full stack trace
- Source code inspection for all stack frames (with hightlighting)
- Local and instance variable inspection
- Live REPL on every stack frame
That's easty. Just add it to your
Gemfile, like this:
group :development do gem "better_errors" end
And the best part is works with any Rack app, not just Rails.
Subscribe to the newsletter
You can join here and I'll notify you whenever I publish a new post.
- subscribers – 1 issue