mac下Netbeans中xdebug的配置

来源:互联网 发布:做小游戏的软件 编辑:程序博客网 时间:2024/05/18 10:22
1.用brew下载xdebug.     brew install php54-debug
2.在/etc/php.ini 中加入:
zend_extension="/usr/local/Cellar/php54-xdebug/2.2.5/xdebug.so"
        xdebug.remote_enable=1  
        xdebug.remote_host=localhost  
        xdebug.remote_port=9000  
        xdebug.remote_handler=dbgp  
3.重启apache : sudo apachectl restart
4.在Netbeans中,偏好设置->php->debug,端口也为9000。

0 0
原创粉丝点击