HTTPS clone URL
Subversion checkout URL
Installation: command line version
Clone this wiki locally
sudo gem install ruby-debug19
Note: if you’re using a non-standard Ruby release (pulled from SVN, and/or patched), then instead, run:
sudo gem install ruby-debug19 -- --with-ruby-include=/path/to/ruby
where “/path/to/ruby” is the root path of the Ruby sources (the one with vm_core.h in it).
Currently, ruby-debug19 only works on Windows using a RubyInstaller installation. Either download a 1.9.x version from here, or, create your own RubyInstaller build from here. Do not install to a path that has a space inside of it (like “C:\Program Files\”).
In both cases, you will also need to download and install the DevKit. If you don’t have 7-Zip, get it here. Extract, and follow the instructions in the INSTALL file. If you had installed Ruby in c:\ruby, and, extracted this kit into there also, then you don’t need to do anything.
gem install ruby-debug19
Note: if you built your own RubyInstaller, then you will need to install with:
gem install ruby-debug19 -- --with-ruby-include=c:/path/to/ruby
where “/path/to/ruby” is the root path of the Ruby sources (the one with vm_core.h in it). Don’t use the Windows-style backslash.
Install MacPorts. Then:
sudo port install rb19-debug
There is also an install script here that will clean out old components first.
If you have Ruby installed with RVM you can install gem as follows:
gem install ruby-debug19 -- --with-ruby-include="$rvm_path/src/$(rvm tools identifier)/"
This will automatically locate the source files for your version of Ruby and your gemset. See here for more info.