Click xdebug, and use the command line command curl locahost/info.php to copy the html page of the info.php file to this page for online detection of the php version and automatic selection of the Xdebug version.
Download the xdebug-xx.tgz file filtered by the website.
Unzip the downloaded file and go to the xdebug-xx folder.
tar -xvzf xdebug-xx.tgz
cd xdebug-xx
After entering phpize it returns the result:
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
For ubuntu and debian systems, if there is no phpize prompt, execute phpize again after installing the bread.
apt install php5-dev
Run the following code to compile and install:
./configure
make
cp modules/xdebug.so /usr/lib/php5/20131226
Edit the file /etc/php5/apache2/php.ini and add:
zend_extension = /usr/lib/php5/20131226/xdebug.so
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
The problem I have encountered at present is that the computer has PHP5 and PHP7 installed at the same time, and the Configuration that appears when running phpize is
inconsistent with the version that appears in the online detection and the automatic selection of the Xdebug version, so the xebug configuration is unsuccessful, but one line of steps is no problem.