Debugging AJAX requests with better_errors

Updated . Posted . Visible to the public. Repeats.

better_errors Show archive.org snapshot is an awesome gem for enhanced error pages in development, featuring a live-REPL for some light debugging.

To debug the exception you got on an AJAX-Request, visit /__better_errors on your app's root path (e.g. http://localhost:3000/__better_errors). It shows the error page for the last exception that occurred, even when it has been triggered by an AJAX request.

Thomas Klemm
Last edit
Jakob Scholz
License
Source code in this card is licensed under the MIT License.
Posted by Thomas Klemm to makandra dev (2014-04-24 15:59)