Introduction
Xdebug is an open source PHP program debugger; it can help you track, debug and analyze PHP programs, and also help you understand the underlying implementation principles and structure of PHP.
The following content here is based on Centos, and the windows system will not be described in detail.
Before installation
Before installation, we must first pass Run the php -m command to check whether Xdebug has been installed.
Installation preparation
First go to the official website of Xdebug to download the source package
Start the installation
1. First unzip the downloaded source package

Enter the decompressed folder cd xdebug-2.7.0alpha1
2. Run phpize after entering the folder. If you are prompted that there is no phpize command; use find / -name phpize to find the absolute path of phpize, and then run the absolute path.
3. Run ./configure. If you need to manually specify the PHP configuration path, run ./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php- config
4. Run make && make install

5. After the installation is successful, we will be prompted to add content in php.ini

6. We will add extension=xdebug.so to php.ini according to the prompt given by the icon in step 5, and then restart php

7. After restarting PHP, check whether the installation has been successful through php -m

The installation is successful! ! (congratulation!)
The above is the detailed content of How to install PHP7 version of Xdebug under Centos. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Atom editor mac version download
The most popular open source editor

Dreamweaver Mac version
Visual web development tools





