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

Introducing the pitfalls of Xdebug not supporting php7.0

Feb 13, 2021 am 10:19 AM
xdebug

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

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Will enabling XDebug on a production server make PHP slower? Will enabling XDebug on a production server make PHP slower? Sep 22, 2023 pm 10:41 PM

Yes, debuggers like XDebug can slow down PHP server performance. This is why the debugger is not placed in a server environment. They are deployed in different environments to avoid unnecessary overhead. Debug messages cannot be displayed in applications that are already in production. When debugging behavior is added to the server, the debugging engine is attached to the PHP process. It starts receiving messages to stop at the breakpoint, but this is not required behavior as it would give a performance hit to other processes, thus stopping the PHP parser. On the other hand, when debuggers are installed, they tend to open ports in the server because they are not intended for use in a production environment. Opening a port in your server is just as bad as opening a door for hackers to snoop through.

Debugging library in PHP8.0: Xdebug Debugging library in PHP8.0: Xdebug May 14, 2023 am 08:09 AM

Debugging is an inevitable part of PHP development. In order to help developers debug their own code more easily, PHP8.0 introduced a very useful tool in its debugging library: Xdebug. This article will introduce some of the main features of Xdebug and how to use it to simplify the process of PHP debugging. Xdebug is an open source debugging tool that can capture errors in PHP applications and provide detailed error stack trace information, as well as the variables being used. It helps developers detect and troubleshoot code

Using Xdebug debugging technology in ThinkPHP6 Using Xdebug debugging technology in ThinkPHP6 Jun 20, 2023 pm 09:14 PM

ThinkPHP6 is a popular PHP framework that uses a variety of technologies to make development more convenient. One such technology is debugging tools such as Xdebug. In this article, we will explore how to use Xdebug for debugging in ThinkPHP6. Install and configure Xdebug Before you start using Xdebug, you first need to install and enable it. In the php.ini file, you can add the following configuration: [xdebug]zend_extension=x

Development tools in PHP Development tools in PHP May 23, 2023 am 08:18 AM

PHP is a programming language widely used in web development. For PHP development tools, choosing a suitable tool can make the developer's work more efficient and convenient. In this article, we will discuss several common PHP development tools, including integrated development environments (IDEs), text editors, and debugging tools. 1. Integrated development environment (IDE) PhpStorm PhpStorm is a powerful PHP development environment developed by JetBrains. It not only supports PH

How to use the php extension XDebug for efficient debugging and performance optimization How to use the php extension XDebug for efficient debugging and performance optimization Jul 29, 2023 pm 08:57 PM

How to use the PHP extension XDebug for efficient debugging and performance optimization When developing and debugging PHP applications, we often encounter a variety of problems, including incorrect calls, inefficient code, and performance bottlenecks. XDebug is a powerful PHP extension that can help us quickly locate, debug and optimize these problems. This article will introduce how to use XDebug for efficient debugging and performance optimization, and provide some code examples. Install and configure XDebug First, we need to install XDebug

A Practical Guide to PHP Server Optimization: From Beginner to Mastery A Practical Guide to PHP Server Optimization: From Beginner to Mastery Feb 19, 2024 pm 05:03 PM

1. Overview of PHP server optimization PHP server optimization refers to improving the performance and stability of the PHP server by adjusting server configuration, optimizing PHP code, and using cache. Common optimization methods include: 1. Optimize PHP code Optimizing PHP code is one of the most direct ways to improve PHP server performance. Methods to optimize PHP code include: using faster algorithms and data structures to avoid unnecessary database queries and recycling caching techniques to improve performance using code analysis tools to find performance bottlenecks 2. Optimize PHP server configuration Optimizing PHP server configuration can also improve performance PHP server performance and stability. Methods to optimize PHP server configuration include: increasing PHP memory limit, adjusting the number of PHP processes, and optimizing

PHP development: Breakpoint debugging and unit testing using Xdebug and PHPUnit PHP development: Breakpoint debugging and unit testing using Xdebug and PHPUnit Jun 15, 2023 pm 07:55 PM

PHP developers often encounter debugging and testing issues during the development process. To address these issues, we can use some tools to help us better debug and test. Among them, Xdebug and PHPUnit are two essential tools for PHP developers. In this article, we will introduce the basic usage of Xdebug and PHPUnit, including how to use breakpoint debugging and unit testing. Xdebug is a debugger and analyzer for PHP. byX

Swoole debugging tips: Use Xdebug to debug high-concurrency applications Swoole debugging tips: Use Xdebug to debug high-concurrency applications Jun 13, 2023 am 09:19 AM

With the rapid development of Internet technology, more and more applications adopt high-concurrency architecture to achieve fast response and high scalability. Swoole, as a popular PHP extension in the field of high concurrency, provides developers with extremely rich functions and good performance. However, when we use Swoole to develop high-concurrency applications, we often encounter various problems, the most troublesome of which is how to debug the program. This article will introduce how to use Xdebug to debug Swoole applications. 1. What is

See all articles