Dan Oblinger
Dan Oblinger

Reputation: 534

Using ruby-debug with rails 3.1.1 and ruby 1.9.3

I have read tutorials and several stack overflow posts that suggest I should use

gem 'ruby-debug19', "~> 0.11.6"

or gem 'ruby-debug19', :require => 'ruby-debug', :platforms => :mri_19 gem 'ruby-debug', :platforms => :mri_18

After doing a bundle install, I attempt to use this by executing

rails s --debugger

and get the error message

"You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug' Exiting

if I type

gem install ruby-debug

I get: ERROR: Error installing ruby-debug: rbx-require-relative requires Ruby version ~> 1.8.7.

gem install ruby-debug19

does execute, but still the error message above is reported when I attempt to start the server.

I must be missing something obvious, because there are no other comments on the original stack overflow question.

thanks for any help!

Upvotes: 1

Views: 3216

Answers (1)

Thong Kuah
Thong Kuah

Reputation: 3283

Just put the line gem 'ruby-debug19', :require => 'ruby-debug' in your Gemfile should do. Then run bundle install

Upvotes: 2

Related Questions