Skip to content

Instantly share code, notes, and snippets.

@amateurhuman
Created December 15, 2011 04:13
Show Gist options
  • Save amateurhuman/1479811 to your computer and use it in GitHub Desktop.
Save amateurhuman/1479811 to your computer and use it in GitHub Desktop.
Install ruby-debug19 with ruby 1.9.3

Install ruby-debug19 with ruby 1.9.3

Download the following gems from http://rubyforge.org/frs/?group_id=8883

  • linecache19-0.5.13.gem

  • ruby-debug-base19-0.11.26.gem

    gem install ~/Downloads/linecache19-0.5.13.gem

You need to point to the directory with the Ruby header files (specifically method.h) and pass it with the gem install command. Should look something like:

gem install ~/Downloads/ruby-debug-base19-0.11.26.gem -- --with-ruby-include=~/.rbenv/versions/1.9.3-rc1/include/ruby-1.9.1/ruby-1.9.3-rc1

Add to Gemfile:

gem ‘ruby-debug19′, :require => ‘ruby-debug’

Start rails with debugger option:

rails server --debugger

The real hard work was done by:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment