Home  >  Article  >  Backend Development  >  Introduction to the configuration method of xdebug in PHPSTORM

Introduction to the configuration method of xdebug in PHPSTORM

不言
不言Original
2018-08-01 11:00:112158browse

The content shared with you in this article is about the configuration of xdebug in PHPSTORM. It has certain reference value. I hope it can help friends in need.

  1. php configuration: enable xdebug
    Add the following configuration options to the xdebug configuration section of the php.ini file. The main meaning is to set the address, port number and representation of the phpstorm debugging client.

       xdebug.remote_enable = on 
       xdebug.auto_trace = on
       xdebug.remote_handler=dbgp
       xdebug.remote_host=localhost
       xdebug.remote_port=9000
       xdebug.idekey=PHPSTORM

    After the configuration is completed, open phpstorm and set the parser of php. At this time, you should see that the xdebug extension has been installed, otherwise check the configuration file.

Introduction to the configuration method of xdebug in PHPSTORM

2. Debugging a single PHP file
To debug a single PHP file, you need to configure DBgp parameters and xdebug configuration The parameters are the same. As shown below.

Introduction to the configuration method of xdebug in PHPSTORM

After that, select php script in run>edit configurations to debug a single php file.

Related recommendations:

[PHP xdebug] Configure xdebug debugging environment in PhpStorm under Ubuntu 14.04

PHPStorm configuration Xdebug

The above is the detailed content of Introduction to the configuration method of xdebug in PHPSTORM. For more information, please follow other related articles on the PHP Chinese website!

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