在一个全新的测试应用程序中,我输入:
$ 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'
我尝试了十几种变体。我错过了什么?
答案 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 => “红宝石调试”