Home>Article>Backend Development> Introducing the pitfalls of Xdebug not supporting php7.0

Introducing the pitfalls of Xdebug not supporting php7.0

coldplay.xixi
coldplay.xixi forward
2021-02-13 10:19:21 3465browse

Introducing the pitfalls of Xdebug not supporting php7.0

Recommended (free):PHP7

Xdebug installation

    • Tossing xampp
    • Select Xdebug version
    • Summary

##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:


Introducing the pitfalls of Xdebug not supporting php7.0
Introducing the pitfalls of Xdebug not supporting php7.0Click 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.

Introducing the pitfalls of Xdebug not supporting php7.0The 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.

Introducing the pitfalls of Xdebug not supporting php7.0

Summary

    The php version does not match the corresponding version in xdebug.
  1. You can find the corresponding one based on the php version. xdbug version configuration;
  2. If the PHP version in xampp is too low, it is recommended to uninstall it directly and download the latest xampp version. Upgrading the PHP version alone requires a lot of modifications, and there are also unknown problems.

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete