Rails,已安装的Rails调试器

AnA*_*ice 0 ruby-on-rails ruby-on-rails-3

请看下面:

$ 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...
Run Code Online (Sandbox Code Playgroud)

这一切看起来都很棒,然后当我开始启动服务器时,它启动然后存在:

$ 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
Run Code Online (Sandbox Code Playgroud)

有人见过这个吗?

谢谢

Pau*_*lan 5

您可能需要将其放在Gemfile中,gem 'ruby-debug'然后bundle install在其上运行.试试吧