git clone git://github.com/xdebug/xdebug.git
git checkout xdebug_2_5 对应php版本5.6.30
/usr/local/php/bin/phpize
./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config
make
sudo make install
php.ini配制:
[Xdebug]
zend_extension=xdebug.so ;启用性能检测分析 xdebug.profiler_enable=on ;启用代码自动跟踪 xdebug.auto_trace=on ;允许收集传递给函数的参数变量 xdebug.collect_params=on ;允许收集函数调用的返回值 xdebug.collect_return=on
php -m |grep -i xdebug