1.用brew下载xdebug.
brew
install php54-debug
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
2.在/etc/php.ini 中加入:
zend_extension="/usr/local/Cellar/php54-xdebug/2.2.5/xdebug.so"
3.重启apache : sudo apachectl restart
4.在Netbeans中,偏好设置->php->debug,端口也为9000。
本文介绍如何通过brew安装Xdebug并配置到PHP环境中,详细步骤包括修改php.ini文件、重启Apache服务及设置Netbeans的调试参数。
4634

被折叠的 条评论
为什么被折叠?



