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

Introducing the pitfalls of Xdebug not supporting php7.0

coldplay.xixi
Release: 2023-02-17 19:36:01
forward
3700 people have browsed it

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.0 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.

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

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
sublime xdebug problem
From 1970-01-01 08:00:00
0
0
0
PHP: Xdebug access denied but exits with code 0
From 1970-01-01 08:00:00
0
0
0
Install Xdebug for PHP 7.4 on M1 Apple
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template