【发布时间】:2013-06-06 16:23:13
【问题描述】:
我正在尝试在本地使用 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 并关闭防火墙,但没有帮助。
【问题讨论】:
-
如果您有多个 IDE 使用相同的 xdebug 服务器,有时它不起作用
-
如何检查我是否有多个 xdebug 服务器?
-
您没有多个 xdebug 服务器。我说的是一台服务器多IDE连接
-
我没有。它现在正在工作。