Xdebug是一個開源的php調試器,以php模塊的形式加載並被使用。php
/usr/local/bin/pecl install xdebug
或者php-fpm
wget https://pecl.php.net/get/xdebug-2.4.0.tgz tar xzf xdebug-2.4.0.tgz cd xdebug-2.4.0 /usr/local/bin/phpize ./configure --with-php-config=/usr/local/bin/php-config make && make install
[xdebug] zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
service php-fpm reload
Xdebug擴展安裝成功工具