How to get ruby-debug working on Windows with Ruby 1.9.3p0

Download these files to c:\temp
  • linecache19-0.5.13.gem
  • ruby-debug-base19-0.11.26.gem
Install those gems from the command line
  • gem install c:\temp\linecache19-0.5.13.gem
  • gem install c:\temp\ruby-debug-base19-0.11.26.gem — –with-ruby-include=C:\Ruby193\include\ruby-1.9.1\ruby-1.9.3-p0
Install the ruby-debug gem
  • gem install ‘ruby-debug19’
Follow these instructions for ruby-debug or just put this in your code
  • require ‘ruby-debug’; Debugger.start

This method was tested with Win 2003 and Win 7 64-bit. For more, see this thread