Arg, looks like this is a fairly common problem but I can’t seem to figure out how to get my debugger working. I’ve installed a myriad of gems to try to get this bad boy running but no luck. Here is a list for completeness. I’ve included my gemfile as well. As is probably quite obvious I’m a RoR newb. I’m using RubyMine as my IDE and upon trying to debug I get an error that states “The gem ruby-debug-base19x required by the debugger is not currently installed. Would you like to install it?”. Of course, upon saying ‘yes’ to download the mirror is broken and the download fails resulting in the following error:
5:56:46 PM Error running Development: SponsorBid: Cannot start
debugger. Gem ‘ruby-debug-ide’ isn’t installed or its executable
script ‘rdebug-ide’ doesn’t exist.


Even though this question duplicates two other questions here, I’ll answer it for the sake of completeness.
In order to debug from RubyMine you must use only 2 debug gems:
ruby-debug-base19xruby-debug-ideExactly these gems must be used, not
ruby-debug-base19, notruby-debug19, notdebugger. All the other debug gems must be uninstalled and removed from theGemfile.See this answer for the details how to install proper debug gem versions. If you have a problem downloading
linecache19-0.5.13.gemgem, try this mirror instead.Verify with
gem listthat you have the following or more recent versions installed:No other debug gems should be listed by this command.
As stated in another answer,
debuggergem must not be used, it will conflict with the debug gems used by RubyMine and debugger will not work. You must uninstall this gem, remove it from theGemfileand ensure that your code doesn’t call any methods from this gem and is not trying to load it.Happy debugging!
As suggested by @Anjan, your
Gemfilefor debugging can look like this:Just run
bundle installto get the proper versions of the required debug gems.