Read more

Fix REPL of better_errors page

Johanna Schalk
October 06, 2021Software engineer at makandra GmbH

The gem better_errors Show archive.org snapshot offers a detailed error page with an interactive REPL Show archive.org snapshot for better debugging.
I had the issue that on a few projects with Ruby 2.5.8, the REPL was not shown.

Solution

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

To make the REPL work properly with this Ruby version I had to update the gem binding_of_caller Show archive.org snapshot to at least version 0.8.0.

From the better_errors Show archive.org snapshot docs:

binding_of_caller is optional, but is necessary to use Better Errors' advanced features (REPL, local/instance variable inspection, pretty stack frame names).

Posted by Johanna Schalk to makandra dev (2021-10-06 14:56)