ruby-debug with Ruby 1.9.3?

I just updated to Ruby 1.9.3p0 and Rails 3.1.1. Now when I try to launch the server, it complains that I should install ruby-debug, even though it's already installed.

% rails server --environment=development --debug
=> Booting WEBrick
=> Rails 3.1.0 application starting in development on
=> Call with -d to detach
=> Ctrl-C to shutdown server
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'

In my Gemfile I have

# see:
gem 'ruby-debug-base19', "0.11.24"
gem 'ruby-debug19', "0.11.6"

Is it possible to run debug with the latest version of Ruby?


Update (April 28, 2012)

Try the new debugger gem as a replacement for ruby-debug.

(credit to @ryanb)

Update (March 2, 2012)

Installation of linecache19 and ruby-debug-base19 can be easily done with:

bash < <(curl -L

(credit to @fredostarr)

Original answer

Have you looked at ruby-debug19 on ruby-1.9.3-preview1?

Here's a temporary solution:

Excerpt from the site:

First download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from, then …

$ gem install linecache19-0.5.13.gem 
Building native extensions.  This could take a while...
Successfully installed linecache19-0.5.13
1 gem installed
$ gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/Users/santiago/.rbenv/source/ruby-1.9.3-p0  
Building native extensions.  This could take a while...
Successfully installed ruby-debug-base19-0.11.26
1 gem installed
$ irb
irb(main):001:0> require 'ruby-debug'
=> true

Need Your Help

Newsstand Icon doesn't show in Xcode 5 iOS 6.1 SDK

ios xcode xcode5 newsstand-kit asset-catalog

Since upgrading Xcode to v5 and converting launch and app icon images to image asset catalogs, I've been unable to see the Newsstand icon of my app in the Newsstand on iOS 6.1 and iOS 7. Instead I ...

The difference between cmpl and cmp

c assembly x86 x86-64

I am trying to understand assembly to be able to solve a puzzle. However I encountered the following instructions: