Table of Contents
Install xdebug
Use xdebug for debugging on vim
Home Backend Development PHP Tutorial vdebug+xdebug installation

vdebug+xdebug installation

Jul 29, 2016 am 08:59 AM
localhost remote xdebug

From eclipse to vim, I didn’t find the single-step breakpoint debugging function at first, which was very frustrating. Then I searched and found the solution of xdebug+vdebug.

Install xdebug

Environment: centos 6.5
xdebug installation:
http://www.cnblogs.com/yixiong/archive/2013/03/29/2988331.html

Use xdebug for debugging on vim

  • Install xdebug
  • Use pathgen to install vim’s vdebug plug-in.
  • Configure vdebug in php.ini. The configuration is as follows:
<code>zend_extension=/path/to/xdebug<span>.so</span>
xdebug<span>.remote</span>_enable=on
xdebug<span>.remote</span>_handler=dbgp
xdebug<span>.remote</span>_host=localhost
xdebug<span>.remote</span>_port=<span>9000</span></code>
Copy after login
  • Notes:
    1. xdebug.remote_port needs to be configured with the port corresponding to php-fpm.
    2. f5 turns on the debugging mode
    3. f6 turns off the debugging mode
    Breakpoint and adds a breakpoint
f2 Next line

f3 Enter the function
  • f4 Exit the function
  • :VdebugEval
  • $
  • val View the running value of the variable.
  • The function provided by vdebug+xdebug
  • breakpoint debugging allows us to go deep into the function.
  • Provides error tracking information. Similar to java.
  • vdebug official documentation: https://github.com/joonty/vdebug

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i

').text(i)); }; $numbering.fadeIn(1700); }); });
  • The above introduces the vdebug+xdebug installation, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.
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)

Why can't mysql connect to localhost? Why can't mysql connect to localhost? Aug 10, 2023 pm 02:55 PM

The reasons why mysql cannot connect to localhost are that the mysql service is not started, the mysql port is occupied, and there is a problem with the MySQL configuration file. Detailed introduction: 1. In Windows systems, you can open the service manager by entering "services.msc" at the command prompt, then find the mysql service and ensure that its status is "Running". In Linux systems, you can use the "services.msc" command to check and control the service status; 2. You can use the open command and so on.

What should I do if localhost cannot be opened? What should I do if localhost cannot be opened? Nov 07, 2023 pm 02:47 PM

Solution: 1. Check the running status of the server and make sure it is listening on the correct port; 2. Try to temporarily disable the firewall or security software, and then try to access localhost again; 3. Check the hosts file of the operating system to ensure that localhost is resolved correctly ; 4. Try to restart the network adapter or reconfigure the network connection; 5. Try to change the port used by the local server, or close other programs that occupy the same port; 6. Try to manually add the corresponding IP address and domain name in the hosts file, etc.

What does linux localhost mean? What does linux localhost mean? Mar 14, 2023 am 09:53 AM

linux localhost means "computer host name". The host name is used to identify an independent computer on the network; the root in "root@localhost" represents the currently logged-in user. In Linux, the administrator account is root, and the user is root. Log in to the Linux machine as a user.

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

Detailed explanation of git remote command Detailed explanation of git remote command Feb 19, 2024 am 11:30 AM

The gitremote command is used to manage connections to remote repositories. It can list, add, rename, and delete connections to remote repositories. The following is a detailed explanation of the gitremote command: gitremote: Running gitremote directly without any parameters will list a list of abbreviated names of remote warehouses configured in the current warehouse. gitremote-v: Displays the abbreviated name and corresponding URL of the remote warehouse configured in the current warehouse. gitremoteadd: Add a new remote warehouse to the current warehouse. Is the abbreviation name of the remote warehouse, which is the remote warehouse

See all articles