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的調試選項被設置爲默認值,但我未選中「停在第一行」怎麼我讀的地方這樣做。
如果你需要更多的信息,讓我知道。