Search code examples
rubydebuggingjrubyprybyebug

Debugging in JRuby 9000


What is the best way to debug in JRuby 9000? Pry and Byebug are both MRI-dependent. All the JRuby info that I have found seem to be only for pre-9k, and are not working for my JRuby 9k setup.


Solution

  • As you can see in https://rubygems.org/gems/pry/versions, there are many java versions of pry that work very well with jruby since jruby 1.6.

    Pry is not MRI dependent. You can also use pry-remote in case your application is a web server or a rails app.

    I've tried using byebug and gave up since it was not supported on jruby.