9

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.

RezaF
  • 123
  • 1
  • 6

2 Answers2

3

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.

Christian MICHON
  • 2,140
  • 2
  • 19
  • 30
1

The ruby-debug-ide-0.4.28 and ruby-debug-base-0.10.5.rc10-java gems seem to work with the intellij ruby plugin, using JRuby 9.0.0.0.rc2.

Eric Badiere
  • 182
  • 1
  • 4