Home >Backend Development >PHP Tutorial >phpstorm xdebug debugging configuration

phpstorm xdebug debugging configuration

WBOY
WBOYOriginal
2016-07-29 09:13:42925browse

This is the first time to develop using PhpStorm. Various configurations will make development easier.

xdebug installation

Step one: Enable the xdubug extension in php.ini

[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="C:\Program Files\phpStudy\tmp\xdebug"
xdebug.trace_output_dir ="C:\Program Files\phpStudy\tmp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
zend_extension="C:\Program Files\phpStudy\php53\ext\xdebug.dll"
and check whether phpinfo is installed successfully. If you are using the phpstudy integrated environment, just open it in the extension

phpstorm xdebug 调试配置

Step 2: Add the plug-in to the Firefox browser

Please see the corresponding xdebug plug-in for each browser here and click to open the link

Step 3: Open phpstorm and enable debug as shown below

phpstorm xdebug 调试配置

At this point, phpstorm is configured using xdebug.

Open any php file and set a breakpoint, open The easizer xdebug in the browser and you can start the xdebug debugging journey!

phpstorm xdebug 调试配置

The above introduces the phpstorm xdebug debugging configuration, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

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