xdebug安装

安装autoconf
wget http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz 
tar -xzf autoconf-2.69.tar.gz 
cd autoconf-2.69 
./configure && make && sudo make install 

安装xdebug
wget https://xdebug.org/files/xdebug-2.8.0beta1.tgz
tar zxvf xdebug-2.8.0beta1.tgz 
cd xdebug-2.8.0beta1
phpize
./configure --with-php-config=/home/linuxbrew/.linuxbrew/Cellar/php/7.2.10/bin/php-config
make
make install

配置xdebug
vim /home/linuxbrew/.linuxbrew/Cellar/php/7.2.10/lib/php.ini
zend_extension="/home/linuxbrew/.linuxbrew/Cellar/php/7.2.10/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so"
xdebug.cli_color=1
xdebug.force_display_errors = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_enable = Off
xdebug.auto_trace = 0
xdebug.default_enable = Off
xdebug.trace_output_dir="/tmp/xdebug"
xdebug.trace_output_name = trace.%c.%p
xdebug.profiler_output_dir="/tmp/xdebug"
xdebug.profiler_output_name="cachegrind.out.%s"
xdebug.show_exception_trace = Off
xdebug.collect_vars         = Off
xdebug.collect_return       = Off
xdebug.max_nesting_level = 10000
xdebug.dump_globals= off
xdebug.show_local_vars=off
xdebug.collect_params=2

确认xdebug安装成功
php -m | grep xdebug

重启fpm
monit restart brew-php-fpm

你可能感兴趣的:(xdebug安装)