您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

netbeans显示“正在等待连接(netbeans-xdebug)”

netbeans显示“正在等待连接(netbeans-xdebug)”

你纠正了这个问题吗?如果没有,请尝试此操作。

1.)PHP.ini文件内容

[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并尝试调试。

谢谢约翰逊

dotnet 2022/1/1 18:20:27 有518人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶