2012-02-06 26 views
0

在一个完全新的测试轨道的应用程序,我输入:无法启动轨调试器(使用Rails 3.1.3与1.9.3红宝石)

$ 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

再次运行软件包安装。根据您的示例,您在运行软件包安装后更改了Gemfile。 – sosborn 2012-02-06 02:09:55

+0

谢谢。这仅仅是我编辑不好的部分。可悲的是我做了一个捆绑安装后...我认为,调试器根本不兼容红宝石1.9.3。 – 2012-02-18 00:19:36

回答

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 => '[email protected]:chuckg/linecache19.git', :branch => "0_5_13/dependencies", :require => false 

如果没有工作,回去红宝石1.9.2,并尝试

宝石 '红宝石debug19':需要=>“红宝石-debug“

相关问题