我正在本地尝试使用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服务器.
原文地址:https://www.jb51.cc/php/130316.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。