search
HomeBackend DevelopmentPHP7Introducing the pitfalls of Xdebug not supporting php7.0

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment