Home > Article > Backend Development > Tutorial on how to install the debugging tool Xdebug extension for PHP7 (picture)
With the tool function, you can intuitively see the performance data of PHP source code in order to optimize PHP code. This article introduces how to install the debugging tool Xdebug extension for PHP 7. Friends in need can refer to it. Preface
When it comes to PHP code debugging, for experienced PHPers, use the echo, print_r, var_dump function, or PHP Development tools zend studio and editplus can solve most problems, but they are difficult for children who are starting to learn PHP. Moreover, it is difficult to accurately find PHP performance problems only through the above-mentioned PHP debugging methods. Xdebug Is a very useful PHP debugging tool.
LNMP Junge one-click package version 1.3
PHP 7.0.7
Xdebug 2.6
Execute the following commands to install according to your own environment. Remember not to copy and execute the original
git clone git://github.com/xdebug/xdebug.git cd xdebug find / -name phpize /usr/bin/phpize find / -name php-config ./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config make make install
find / -name php.ini vi /usr/local/php/etc/php.ini 添加 extension=xdebug.so service restart php-fpm
phpinfo
The following picture prompt indicates that the opening is successful
Summary
The above is the detailed content of Tutorial on how to install the debugging tool Xdebug extension for PHP7 (picture). For more information, please follow other related articles on the PHP Chinese website!