mac下Netbeans中xdebug的配置

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。

發佈了4 篇原創文章 · 獲贊 4 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章