本人习惯netbeans-xdebug调试
我是在Mac本上开发, 大家linux配置xdebug也可以参考
我的php 是通过mac homebrew 安装,所以xdebug的安装我也是用homebrew (类似 linux wget / yum)
直接进入话-操作命令步骤如下:
1 mac 安装homebrew :ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2 配置php.ini
(1)查看php 版本: php -v (5.3/5.4/5.6/..)
(2)brew search xdebug
homebrew/php/php53-xdebug homebrew/php/php54-xdebug homebrew/php/php55-xdebug homebrew/php/php56-xdebug
(3) brew install homebrew/php/php55-xdebug (选择与php版本相符的xdebug)
(4) 找到xdebug.so文件路径 (/usr/local/Cellar/php55-xdebug/2.3.3/xdebug.so)
(5) 找到php.ini文件 (php -i | grep php.ini)
Configuration File (