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.
Asked
Active
Viewed 1,666 times
9
-
Since it's running in the JVM, most Java tools will do the job. – tadman Jul 17 '15 at 15:14
-
pry is _not_ MRI dependent! https://github.com/pry/pry/blob/master/.travis.yml – deivid Jul 18 '15 at 17:59
-
Thanks for the tip @deivid! I must have mixed up _pry_ and _pry-byebug_ (which is MRI-dependent). – RezaF Jul 19 '15 at 22:07
2 Answers
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