[英]Cannot start the rails debugger (using rails 3.1.3 with ruby 1.9.3)
In a completely new test rails app, I enter: 在一个全新的测试栏应用中,我输入:
$ sudo gem install ruby-debug19
$ bundle install
# and add the following line to my Gemfile
gem 'ruby-debug19', "~> 0.11.6"
$ rails server --debugger
I receive the following error 我收到以下错误
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
I have tried a dozen variations. 我尝试了十几种变化。 What am I missing?? 我想念什么?
Try this (see https://github.com/chuckg/chuckg.github.com/blob/master/ruby/193_and_rdebug.md ): 试试这个(请参阅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
If not working, go back to ruby 1.9.2 and try 如果不起作用,请回到ruby 1.9.2并尝试
gem 'ruby-debug19', :require => "ruby-debug" gem'ruby-debug19',:require =>“ ruby-debug”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.