你纠正了这个问题吗?如果没有,请尝试此操作。
[xDebug]
zend_extension = "c:\xampp\PHP\ext\PHP_xdebug-2.2.3-5.4-vc9.dll"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
;xdebug.remote_host="localhost:81"
xdebug.remote_host=192.168.1.5
;xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
xdebug.remote_host=192.168.1.5
-这是我系统的IPv4地址,我更改为该地址,因为无法使用localhost
和进行调试127.0.0.1
。
在NetBeans IDE中,打开Tools-> Options -> PHP -> Debugging
。调试器端口和会话ID的值应与中指定的端口和idekey相匹配PHP.ini
。
现在保存PHP.ini,重新启动Apache并尝试调试。
谢谢约翰逊