Using the JRuby Debugger
From JRubyWiki
There is a Java-based JRuby implementation of the fast ruby debugger rdebug.
1. Manually download the ruby-debug-base-0.10.1-java.gem from debug-commons to a local directory.
2. Install the Gem into your JRuby Gem repository:
jruby -S gem install -l ruby-debug-base-0.10.1-java.gem
3. Now install ruby-debug with:
jruby -S gem install --ignore-dependencies -v 0.10.1 ruby-debug jruby -S gem install --ignore-dependencies ruby-debug-ide # needed only for IDEs
Note: --debug options used below works only with JRuby 1.1.2. More over there is a bug on Windows so --debug the flag works there only with JRuby trunk. Thus you need to stick with the old option, using -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF instead --debug on Windows or older JRuby releases (1.1.1 and lower).
Starting the debugger on a Rails application:
$ cd my_rails_app $ jruby --debug -S rdebug script/server
External Resources:

