ruby-debug with Ruby 1.9.3?

前端 未结 9 1325
甜味超标
甜味超标 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:15

    Maybe not the definitive answer to this question, but I was lead here by a chain of closed duplicates.

    For me the problem was that I run a project in both ruby 1.8 and ruby 1.9, and my Gemfile needed this change:

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

    Now it works for both rubies.

    For more info see here: http://gembundler.com/man/gemfile.5.html#PLATFORMS-platforms-

提交回复
热议问题