ruby-debug with Ruby 1.9.3?

前端 未结 9 1323
甜味超标
甜味超标 2020-11-28 04:41

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 in

9条回答
  •  盖世英雄少女心
    2020-11-28 05:41

    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 https://raw.github.com/gist/1333785)
    

    (credit to @fredostarr)


    Original answer

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

    Here's a temporary solution: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug

    Excerpt from the site:

    First download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from http://rubyforge.org/frs/?group_id=8883, 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
    

提交回复
热议问题