无法启动rails调试器(使用带有ruby 1.9.3的rails 3.1.3)

时间:2012-02-06 01:04:45

标签: ruby-on-rails ruby-on-rails-3 debugging

在一个全新的测试应用程序中,我输入:

$ sudo gem install ruby-debug19
$ bundle install
# and add the following line to my Gemfile
gem 'ruby-debug19', "~> 0.11.6"
$ rails server --debugger

我收到以下错误

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

我尝试了十几种变体。我错过了什么?

1 个答案:

答案 0 :(得分:0)

试试这个(见https://github.com/chuckg/chuckg.github.com/blob/master/ruby/193_and_rdebug.md):

  gem 'ruby-debug19', :require => false
  gem 'ruby-debug-base19', :git => 'https://github.com/tribune/ruby-debug-base19.git', :require => false
  gem 'linecache19', :git => 'git@github.com:chuckg/linecache19.git', :branch => "0_5_13/dependencies", :require => false

如果不能正常工作,请返回ruby 1.9.2并尝试

  

gem'ruby-debug19',:require => “红宝石调试”