PHP 7 installation and debugging tool Xdebug Extension Method tutorial, installation and debugging xdebug

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.