RubyMine 6 Debugging with 1.8.7

Debugging stopped working for me with RubyMine 6.

This is the error I am getting
~/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) ~/.rvm/gems/ree-1.8.7-2010.02@project/gems/ruby-debug-ide-0.4.22/bin/rdebug-ide --disable-int-handler --port 52619 --dispatcher-port 52620 -- ~/.rvm/gems/ree-1.8.7-2010.02@project/bin/spork rspec
~/.rvm/gems/ree-1.8.7-2010.02@project/gems/ruby-debug-base-0.10.5.rc9/lib/ruby-debug-base.rb:3:in `require': no such file to load -- linecache (LoadError)
 from ~/.rvm/gems/ree-1.8.7-2010.02@project/gems/ruby-debug-base-0.10.5.rc9/lib/ruby-debug-base.rb:3
 from /Applications/RubyMine.app/rb/gems/debug_preloader.rb:2:in `require'
 from /Applications/RubyMine.app/rb/gems/debug_preloader.rb:2

This link had been helpful:
http://stackoverflow.com/questions/10323119/cannot-load-such-file-script-rails-getting-this-error-while-remote-debuggin

I remember removing and installing the right version of linecache and/or ruby-debug, but I don't remember exactly what I did to get RubyMine 5.4 debugging to work. I suppose RubyMine 6 requires a different version of these libraries now. Any suggestions?

After getting the right versions of those gems, I only had to remove these in my project because it seems like there is a conflict with the ruby-debug gem:
1. "gem 'ruby-debug'" from Gemfile
2. "require 'spork/ext/ruby-debug' from spec_helper

Thanks!

P.S.
$ gem list linecache
gem list linecache

*** LOCAL GEMS ***

linecache (0.46, 0.43)
$ gem list ruby-debug
gem list ruby-debug

*** LOCAL GEMS ***

ruby-debug (0.10.4, 0.7.5)
ruby-debug-base (0.10.5.rc9, 0.10.5.rc1, 0.10.4, 0.10.3)
ruby-debug-ide (0.4.22, 0.4.17, 0.4.17.beta17, 0.4.17.beta14, 0.4.9)

1 comment

FYI, I got it working again by removing the latest ruby-debug-ide RubyMine 6 asked me to install.

$gem uninstall ruby-debug-ide --version 0.4.22
Successfully uninstalled ruby-debug-ide-0.4.22

$ gem uninstall ruby-debug-base --version 0.10.5.rc9
Successfully uninstalled ruby-debug-base-0.10.5.rc9

$ gem list ruby-debug
gem list ruby-debug

*** LOCAL GEMS ***

ruby-debug (0.10.4, 0.7.5)
ruby-debug-base (0.10.5.rc1, 0.10.4, 0.10.3)
ruby-debug-ide (0.4.17, 0.4.17.beta17, 0.4.17.beta14, 0.4.9)
500friendss-MacBook-Pro:prism 500friends$ gem list linecache
gem list linecache

*** LOCAL GEMS ***

linecache (0.46)

Please let me know if I'm missing any new configurations, thanks!

0

Please sign in to leave a comment.