我正在尝试在本地Mac上使用NetBeans进行调试。
这是我的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并关闭防火墙,但这并没有帮助。