Can't install ruby-debug?

Has anyone else encountered this?

gem install ruby-debug
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug:
    ERROR: Failed to build gem native extension.

        /Users/ohad/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
Can't handle 1.9.x yet
*** extconf.rb failed ***

      

I use gemset in case it has anything to do with it.

+3


source to share


3 answers


Gem debugger

is the de facto standard for the current version of Ruby.



+3


source


The only debugger that works for me so far is a gem debugger

found at https://github.com/cldwalker/debugger

Put gem 'debugger'

in Gemfile or install it for development only.

group :development do
  gem 'debugger'
end

      

I tried a couple of other options (which all failed) before landing on the debugger

gem. In particular, ruby-debug

and ruby-debug19

( https://github.com/denofevil/ruby-debug19 ).



ruby-debug

failed to install. While ruby-debug19

installing, I got an error require 'ruby-debug' ; Debugger.start

.

Here is my environment:

ruby 1.9.3p374 (2013-01-15 revision 38858) [i686-linux]
Rails 3.2.11
Ubuntu 12.04.2 LTS 32bit

      

+1


source


You need to use the version ruby-debug19

as the "regular" version is incompatible with Ruby 1.9:

gem install ruby-debug19

      

Check the gems project page for more information .

0


source







All Articles