2014-01-15 54 views
1

我已經第一次使用windows建立了一個新的開發環境。我安裝了WAMP,並且使用netbeans作爲我的IDE,並在我的php.ini文件中安裝並引用了XDebug。Netbeans - XDebug調試

; XDEBUG Extension 

zend_extension = "c:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll" 

指向我的xdebug.dll文件。

但是,當我嘗試在netbeans內進行調試時,它並未停止在我的任何斷點上。任何想法如何通過停止在我的斷點正確調試?也只是爲了驗證,我要到頁面中的問題與我的Firefox瀏覽器,以便其不,我不運行的代碼

enter image description here

Netbeans Debug Config

回答

1

添加以下到我的php.ini文件和現在正在調試停止在我的斷點netbeans

xdebug.remote_autostart=on 
xdebug.remote_enable=on 
xdebug.remote_enable=1 
xdebug.remote_handler="dbgp" 
xdebug.remote_host="localhost" 
xdebug.remote_port=9000 
xdebug.remote_mode=req 
xdebug.idekey="netbeans-xdebug"