xdebug安装

来源:互联网 发布:android网络响应速度 编辑:程序博客网 时间:2024/06/08 16:47
https://github.com/derickr/xdebug
tar zxvf xdebug-master.zip
yum install -y unzip zip
unzip xdebug-master.zip
cd xdebug-master
/usr/local/php/bin/phpize 
./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config
cp modules/xdebug.so /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/
vim /usr/local/php/etc/php.ini
添加
zend_extension ="/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"  
xdebug.profiler_enable=on   
xdebug.trace_output_dir="/usr/local/php/xdebug/"  
xdebug.profiler_output_dir="/usr/local/php/xdebug/"  
xdebug.remote_enable=on             
xdebug.remote_handler=dbgp            
;xdebug.remote_host=localhost  
xdebug.remote_port=9999


重启
pgrep -fl nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf > /dev/null 2>&1 &


kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`
0 0
原创粉丝点击