加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > PHP > 正文

php – XDebug无法连接到客户端

发布时间:2020-05-25 08:32:15 所属栏目:PHP 来源:互联网
导读:我正在本地尝试使用NetBeans Mac进行调试. 这是我的php.ini [xdebug] xdebug.default_enable=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_autos

我正在本地尝试使用NetBeans Mac进行调试.

这是我的php.ini

[xdebug]
 xdebug.default_enable=1
 xdebug.remote_enable=1
 xdebug.remote_handler=dbgp
 xdebug.remote_host=localhost
 xdebug.remote_port=9000
 xdebug.remote_autostart=1
 xdebug.remote_log="/Applications/MAMP/logs/xdebug.log"
 xdebug.idekey="netbeans-xdebug"
 zend_extension="/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"

这是我在xdebug.log中得到的

I: Connecting to configured address/port: localhost:9000.
   E: Could not connect to client. :-(

我尝试将端口更改为9001并关闭防火墙,但没有帮助.

Xdebug的默认端口(9000)与FastCGI(Xdebug第一!)冲突 – 解决方案是将其更改为另一个端口.完成之后,您需要重新启动IDE,您还需要配置新端口.您还需要重新启动PHP和Web服务器.

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读