Can't install ruby-debug-base19x gem
1) Try download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from http://rubyforge.org/frs/?group_id=8883
2) gem install linecache19-0.5.13.gem
3) gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=[your ruby source] or you can try gem install ruby-debug-base19x --pre
Just remove all debug related gem from your gems/gemset then let RubyMine reinstall the proper ones. Worked for me.