We're trying to debug jruby in rubymine, but receiving this error:
Cannot connect to the debugged process at port 55969 in 10s:
/Users/serguei/.rvm/jruby-1.4.0RC1/lib/ruby/site_ruby/1.8/rubygems.rb:827:in `report_activate_error': Could not find RubyGem ruby-debug-ide (>= 0) (Gem::LoadError)
from /Users/serguei/.rvm/jruby-1.4.0RC1/lib/ruby/site_ruby/1.8/rubygems.rb:261:in `activate'
from /Users/serguei/.rvm/jruby-1.4.0RC1/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem'
from /Users/serguei/.rvm/gems/jruby/1.4.0RC1/bin/rdebug-ide:1:in `load'
even though gem list shows the following:
[jruby:1.4.0RC1] laptop:~ serguei$ jruby -S gem list | grep ruby
The file we're are debugging is very small and consists of:
non_utf8 = "\xa4"
utf8 = Iconv.conv('UTF-8//IGNORE', 'UTF-8', non_utf8)
puts utf8 == non_utf8 # returns true, which is wrong
Debugging on the command-line works, but not in Rubymine.
What is the right way to get debugging of jruby to work in RubyMine?