Upgraded to Rubymine 8 and now debugger doesn't work

I was running Rubymine 7.x and it the debugger was working fine, then upgraded to Rubymine 8, now the debugger doesn't work right.

The debugger will start up, even successfully render pages.

But...when it hits a breakpoint I set...I get this:


IOError (closed stream):


and it errors out, then becomes unusable at all until I stop the process...close the Rubymine application, and restart it.


I have this installed:  

ruby-debug-ide (0.6.0)


Any help?


May be that byebug or pry-byebug are required in Gemfile or Gemfile.lock - in my case the Rubymine debugger started to work after commenting these other debuggers and re-running bundle.


I am facing this issue as well. I'm running RubyMine 8.0.3 (Build #RM-143.1559) on OS X El Capitan 10.11.3.

I can launch in Debug mode, but the debugger crashes only if I set a breakpoint.

Here's the console dump from a failed rspec debug launch (after a 10 second timeout trying to connect to the debugger):

/Users/user_name/.rbenv/shims/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/user_name/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 57662 --dispatcher-port 57663 -- /Users/user_name/.rbenv/versions/2.2.1/bin/rspec /path/to/project/spec/models/user_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example "spec name"
Testing started at 2:29 AM ...
Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.2.beta6, file filtering is supported) listens on
-e:1:in `sleep': Interrupt
from -e:1:in `block in <main>'
/Users/user_name/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `prepare_debugger': Interrupt
from /Users/user_name/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:85:in `debug_program'
from /Users/user_name/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:130:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'

Process finished with exit code 130

Lucky you that at least you got your fast debugger working, even tho I have both ruby-debug-ide 0.6.0 and debase 0.2.2.beta6, rubymine still complains:

Error running Unnamed: Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.


@Helen, I'm having the same problem and it's driving me crazy.  If I try to launch in debug, I get (every time) a confirmation dialog saying:

"The gem debase required by the debugger is not currently installed.  Would you like to install it? "

I click yes, and it attempts to install both debase-0.2.2.beta6 and ruby-debug-ide-0.6.0.  No errors, but somehow it hasn't worked and I then get the error:

'Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.'

I don't know where RubyMine is looking for them, but apparently not in my global gem set or in my project's gem set.

I've manually installed (gem install) both ruby-debug-ide (0.6.0) and debase (0.2.1 - I don't know how to get 0.2.2.beta6) in my project gem set, the global gem set (via rvm @global do gem install).




Please sign in to leave a comment.