2011-04-16 118 views
0

请参阅以下内容:导轨,安装Rails调试

$ sudo gem install ruby-debug 
Successfully installed ruby-debug-0.10.4 
1 gem installed 
Installing ri documentation for ruby-debug-0.10.4... 
Installing RDoc documentation for ruby-debug-0.10.4... 

这一切都看起来不错,然后当我去启动服务器,它启动,然后存在:

$ rails server --debugger 
=> Booting WEBrick 
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 
Silencing Postgres 
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug' 
Exiting 

任何人看到这之前?

感谢

+0

你检查过你的Gemfile以包含ruby-debug或ruby-debug19吗? – edthix 2011-04-16 05:34:39

回答

5

你可能需要把它放在Gemfile中,gem 'ruby-debug',然后在其上运行bundle install。试试