2010-11-22 52 views
1

我安裝紅寶石調試,當我這樣做:安裝紅寶石調試,現在越來越「應用程序在開始就開溜......」

軌服務器-debugger

我得到:

Rails 3.0.1 application starting in bugger on .... 

爲什麼說雞毛?

然後在那一行之後,我回到命令提示符,以便因某種原因停止?

去一個頁面顯示:

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 

我怎麼能殺的過程中,不知道如何篩選它。

回答

2

如果你想激活調試當您啓動軌服務器,您需要使用-u

rails -u server 

選擇它的幫助信息說明:

[[email protected] ] 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.