Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 346
RezaF Avatar asked Jul 17 '15 15:07

RezaF


2 Answers

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.

like image 191
Christian MICHON Avatar answered Nov 06 '22 12:11

Christian MICHON


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.

like image 1
Eric Badiere Avatar answered Nov 06 '22 10:11

Eric Badiere