Home>Article>Backend Development> Introducing the pitfalls of Xdebug not supporting php7.0
Recommended (free):PHP7
Xdebug installation
##Xdebug installation
Tossing xampp
First, I installed the latest xampp, in which php is version 7.3. I quickly configured xdebug according to the online tutorial, and debugged it with phpstorm for a few days. Because the old project code was too Old, I had various problems running on php7.3 (many methods have been deprecated), and then I looked for information on supporting switching between multiple versions of php on xampp. I tried several methods without success. Later I saw other people's articles saying it was not recommended I went to xampp to upgrade the php version, but finally gave up and went to find an old version of xampp. After installation, the php inside was version 7.0. There is no problem running the project in this version. But the previously configured xdebug must be reconfigured.Select the Xdebug version
The first step is to copy the phpinfo() information to the xdebug official website http://www.xdebug.org/find-binary.php to query the relevant version I encountered a pitfall, prompting that versions below 7.0 are not supported, as shown in the figure:
Click download to see many historical versions. I have seen the version of PHP 7.0 VC14 (32 bit) since Xdebug 2.7.0beta1. I happily downloaded it and put it in the E:\software\xampp\php\ext directory, then configured the php.ini file, refreshed the web page and output phpinfo() , the result is that there is no Xdebug related information. Obviously the configuration was not successful.
The problem lies in the Xdebug file, and then I have been testing the lower version until the 2.5.0 version php_xdebug-2.5.0-7.0-vc14.dll file was successful.
Summary
The above is the detailed content of Introducing the pitfalls of Xdebug not supporting php7.0. For more information, please follow other related articles on the PHP Chinese website!