Better Errors for Rails Better Errors for Rails / asset / free

https://github.com/charliesome/better_errors

A better designed error page and stack trace for ruby frameworks.
6 favorites
submitted almost 4 years ago, by blueberry
Better Errors for Rails popular asset

6 Comments

blueberry

stack trace

blueberry, almost 4 years ago

pineapple

My god the REPL is the best thing ever... jesus

pineapple, almost 4 years ago

SkinnyGeek1010

Wow I wish JavaScript development had errors like this!

What is REPL? The error layout looks a lot better than what I remember from the bit that I tinkered with rails... what does it do better?

SkinnyGeek1010, almost 4 years ago

pineapple

REPL is Read Eval Print Loop, most commonly in reference to lisp or clojure, but in this instance it allows you a small interactive IRB ruby shell. The cool part is is that it's scoped to the current method that's erroring out so you can just type @users or whatever you are trying to debug to see it's current state.

The other option is ruby-debug for 1.9 but it still requires adding words to your code to start the debugger, then you need to remove it when youre done debugging. Third, its someone of a pain because you need to step through everything. Which is obviously ideal for complex things but for easy stuff this takes the cake. It only shows up if theres a problem, otherwise it stays hidden.

pineapple, almost 4 years ago

SkinnyGeek1010

Oh cool, thanks!

SkinnyGeek1010, almost 4 years ago

pineapple

PS... I think i saw something similar not too long ago for JS. If you skim the comments I think you'll see metastew replied (I think). The extra step is you need to replace the body with the output, but for complex problems it would be good rather than console.

pineapple, almost 4 years ago


Login or to comment.

Tutorials are any resources you learn from.

Examples: an intro to html5 screencast, a pdf about git, photoshop effects tutorials, meta-programming in ruby, lambda calculus, higher-order fixed-point combinators.

Tools are websites, apps or services used -on- your project (indirectly), to aid the process.

Examples: A color scheme generator, email marketing software, usability heat maps, css3 code generators, a downloadable png compressor.

Assets are downloadable files used -in- your projects, usually as code, textures, or images.

Examples: a jquery sticky menu, photoshop brushes, background textures, mvc frameworks, twitter bootstrap, 960 grid system.