我正在嘗試讓 Xbdebug 與 NetBeans 一起運行,以便調(diào)試一些 PHP 代碼(我確信幾年前我已經(jīng)讓它工作了,然后切換了 IDE,現(xiàn)在想切換回來)。當我嘗試調(diào)試時,狀態(tài)欄顯示而且,當它沒有在一個簡單echo('hello');文件的第一行上遇到斷點并且我停止調(diào)試時,它會顯示請注意,我的參數(shù)中有XDEBUG_SESSION_START=netbeans-xdebug,但我認為這不是問題(還)。相反,請查看上面有關(guān) Xdebug 設(shè)置的消息。在我的 php.inin 文件中,我有[PHP]zend_extension=F:\DropBox\programs\xampp\php\ext\php_xdebug-2.9.6-7.4-vc15-x86_64.dll xdebug.remote_enable=Onxdebug.remote_host=127.0.0.1xdebug.remote_handler=dbgp <============== (arrow not in file, just shown here to help)xdebug.remote_port=9000xdebug.remote_autostart=1xdebug.remote_log=m:\xdebug.logxdebug.profiler_enable = 0;xdebug.profiler_enable_trigger = 0xdebug.profiler_output_dir=f:\DropBox\programs\xampp\htdocs\_PHP_profilexdebug.profiler_output_name=cachegrind.out.%s.%t但是,當我查看 PHPinfo 時,沒有設(shè)置xdebug.remote_handler- 知道為什么嗎?
1 回答

慕神8447489
TA貢獻1780條經(jīng)驗 獲得超1個贊
當我查看 PHPinfo 時,沒有 xdebug.remote_handler 設(shè)置 - 知道為什么嗎?
這是正常的。該xdebug.remote_handler
選項已在 Xdebug 2.9.0 中刪除。在內(nèi)部它現(xiàn)在總是等于 be dbgp
。
修復了錯誤 #1720:刪除多余的 xdebug.remote_handler 設(shè)置
- 1 回答
- 0 關(guān)注
- 129 瀏覽
添加回答
舉報
0/150
提交
取消