PHP 7 installation and debugging tool Xdebug Extension Method tutorial, installation and debugging xdebug
Preface
Speaking of PHP code debugging, for experienced PHPer, most problems can be solved through echo, print_r, var_dump functions, or PHP development tools zend studio and editplus, however, it is difficult for children's shoes to get started with PHP, and it is difficult to accurately detect PHP performance problems only through the above PHP debugging methods, xdebug is a very useful PHP debugging tool.
Test Environment
- LNMP June one-click package version 1.3
- PHP 7.0.7
- X-Debug 2.6
Procedure
Execute the following commands in your own environment for installation,Remember not to copy and execute as is
git clone git://github.com/xdebug/xdebug.gitcd xdebugfind / -name phpize/usr/bin/phpizefind / -name php-config./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-configmake make install
The prompt indicates that the installation is successful.
Enable scaling
Find/-name php. inivi/usr/local/php/etc/php. ini add extension = xdebug. soservice restart php-fpm
When you access phpinfo, a prompt is displayed, indicating that phpinfo is successfully enabled.
Summary
The above is all the content of this article. I hope the content of this article will help you in your study or work. If you have any questions, please leave a message, thank you for your support.