Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/52.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 已安装ruby调试,现在获得';应用程序在…和#x27在bugger启动;_Ruby On Rails - Fatal编程技术网

Ruby on rails 已安装ruby调试,现在获得';应用程序在…和#x27在bugger启动;

Ruby on rails 已安装ruby调试,现在获得';应用程序在…和#x27在bugger启动;,ruby-on-rails,Ruby On Rails,我安装了ruby调试,当我执行以下操作时: rails服务器-调试器 我得到: Rails 3.0.1 application starting in bugger on .... 为什么它说bugger 然后在那一行之后,我返回到命令提示符,所以它只是因为某种原因而停止 转到页面显示: bugger database is not configured 那么,如果我尝试这样做: rails server 它无法启动: 2010-11-22 00:42:31] INFO WEBrick

我安装了ruby调试,当我执行以下操作时:

rails服务器-调试器

我得到:

Rails 3.0.1 application starting in bugger on ....
为什么它说bugger

然后在那一行之后,我返回到命令提示符,所以它只是因为某种原因而停止

转到页面显示:

bugger database is not configured
那么,如果我尝试这样做:

rails server
它无法启动:

2010-11-22 00:42:31] INFO  WEBrick 1.3.1
[2010-11-22 00:42:31] INFO  ruby 1.8.7 (2010-08-16) [i686-darwin10.4.0]
[2010-11-22 00:42:31] WARN  TCPServer Error: Address already in use - bind(2)
Exiting
... address already in use

如何终止进程,但不确定如何筛选它。

如果要在启动rails服务器时激活调试器,则需要使用-u选项

rails -u server
下面是帮助信息的说明:

[shingara@maison ]  master  %
 rails server -h                       
 22/11/10 09:34:49 Usage: rails server
 [mongrel, thin, etc] [options]
     -p, --port=port                  Runs Rails on the specified port.
                                      Default: 3000
     -b, --binding=ip                 Binds Rails to the specified ip.
                                      Default: 0.0.0.0
     -c, --config=file                Use custom rackup configuration file
     -d, --daemon                     Make server run as a Daemon.
     -u, --debugger                   Enable ruby-debugging for the server.
     -e, --environment=name           Specifies the environment to run this
 server under
 (test/development/production).
                                      Default: development
     -P, --pid=pid                    Specifies the PID file.
                                      Default: tmp/pids/server.pid

     -h, --help                       Show this help message.