2017-06-01 54 views
1

我已經閱讀並嘗試了我已經找到的東西,但是我無法讓它工作,它只是在開始調試時一直掛在「正在等待連接(netbeans-xdebug)」。netbeans php - 無法獲得斷點

我確實安裝了xdebug(我正在使用wamp),而且我實際上設法使用了崇高文本2來處理斷點(是的,沒錯!)所以問題不在我個人電腦本身的php/xdebug中,我錯過了一些設置。

我的XDebug的php.ini文件:

; XDEBUG Extension 
[xdebug] 
;zend_extension ="c:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll" 
zend_extension ="c:\wamp64\bin\php\php5.6.25\ext\php_xdebug-2.5.4-5.6-vc11-x86_64.dll" 
xdebug.remote_enable = 1 
xdebug.profiler_enable = 0 
xdebug.profiler_enable_trigger = off 
xdebug.profiler_output_name = cachegrind.out.%t.%p 
xdebug.profiler_output_dir ="c:/wamp64/tmp" 
xdebug.show_local_vars=0 

xdebug.remote_hander =dbgp 
xdebug.remote_mode = req 
xdebug.remote_host =127.0.0.1 
xdebug.remote_port = 9000 
xdebug.idekey=netbeans-xdebug 
xdebug.remote_connect_back=1 
xdebug.remote_autostart=1 

Netbeans的調試選項被設置爲默認值,但我未選中「停在第一行」怎麼我讀的地方這樣做。

如果你需要更多的信息,讓我知道。

回答

0

我發現自己的問題(因爲一切似乎是爲了在我身邊),netbeans將不會調試非root urls出於某種原因,當然我不想每次都打開根我用一個普通的URL(www.someurl.com)爲特定項目製作了一個虛擬主機,現在看起來工作正常。

另外我不確定每一行是否需要從我的php.ini xdebug設置中進行,但是我一直保留它,因爲我不屑檢查冗餘行,所以如果您不確定您的xdebug設置只是從我的Q.

複製整個事情