Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool like BetterErrors for JRuby? [closed]

I would like to use BetterErrors, but my project uses JRuby, which is unsupported by BetterErrors. Is there a alternative to the better_errors gem that works on JRuby?

What I want is when I have an error in my app, to be able to see it in the browser and use the REPL from the web.

like image 254
Gandalf StormCrow Avatar asked May 21 '26 07:05

Gandalf StormCrow


1 Answers

Your best option is to use web_console which is default in Rail 4.2 .

Altough the support for jRuby is still experimental, as you can see in the README of the project:

There is an experimental JRuby 1.7 support. See Installation section for more information.

If you are running JRuby, you can get experimental support with adding a pre-release version of binding_of_caller.

group :development do
  gem 'web-console', '~> 2.0'

  gem 'binding_of_caller', '0.7.3.pre1'
end

After you save the Gemfile changes, make sure to run bundle install and restart your server for the Web Console to kick in.

like image 53
Paulo Fidalgo Avatar answered May 22 '26 23:05

Paulo Fidalgo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!