How to debug jRuby applications in RubyMine?

Answered

Could you help configuring the debugger for jRuby in rubymine? This is what I get:

Testing started at 12:28 ...
/Users/heinrich/.rvm/rubies/jruby-9.1.15.0/bin/jruby -X+O -J-Djruby.compile.mode=OFF -J-Djruby.debug.fullTrace=true -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/heinrich/.rvm/gems/jruby-9.1.15.0/gems/ruby-debug-ide-0.6.1.beta11/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 59688 --host 0.0.0.0 --dispatcher-port 59689 -- /Users/heinrich/mck/org-api/bin/rspec /Users/heinrich/mck/org-api/spec/models/role_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example "Role#copy does not allow to copy to random manager"
Evaluation memory limit is ineffective in JRuby and MRI < 2.0
Fast Debugger (ruby-debug-ide 0.6.1.beta11, ruby-debug-base 0.10.6, file filtering is supported) listens on 0.0.0.0:59688
Fast Debugger (ruby-debug-ide 0.6.1.beta11, ruby-debug-base 0.10.6, file filtering is supported) listens on 0.0.0.0:59692
The signal QUIT is in use by the JVM and will not work correctly on this platform
The signal QUIT is in use by the JVM and will not work correctly on this platform
The signal USR1 is in use by the JVM and will not work correctly on this platform

Process finished with exit code 0

4 comments
Comment actions Permalink

@Olga,

sorry for the late response. 2 months later I still get the same problem even after making the configuration change you suggested. The error message is the same except that I now use newer jruby.

Thank you
Heinrich

1
Comment actions Permalink

@Heinrich,

could you please check how it goes in case you uncheck "Trace 'to_s' evaluation" option in Preferences | Build, Execution, Deployment | Debugger.

0
Comment actions Permalink

I'm running into the same issue. Any new advice on this?

-Thanks

0
Comment actions Permalink

Hello,

sorry for the delay. Does the problem persist in RubyMine 2019.1 Beta? There've been many improvement related to the debugger.

0

Please sign in to leave a comment.