Some of us had some troubles with ruby-debug after upgrading to Ruby Enterprise Edition. One of the issues was with ‘debugger’ statements within the source code causing the debugger to break, but to report line numbers multiplied by two!
To ensure you have a clean installation of ruby-debug that works alongside your shiny REE installation, follow these steps:
Remove all of the ruby-debug gems (including all versions if there’s more than one, and all executables):
sudo gem uninstall ruby-debug
Remove all of the ruby-debug-base gems (including all versions if there’s more than one):
sudo gem uninstall ruby-debug-base
Check there are no other rdebug executables lying around:
whereis rdebug
Remove any that you find
sudo rm /usr/bin/rdebug
Reinstall ruby-debug using the Ruby Enterpise Edition gem installer:
sudo /usr/local/bin/gem install rub