Home >Backend Development >PHP Tutorial >phpstorm+xdebug implements breakpoint debugging of php

phpstorm+xdebug implements breakpoint debugging of php

小云云
小云云Original
2018-03-21 11:40:021544browse

This article mainly shares with you the method of phpstorm+xdebug to implement breakpoint debugging of PHP. I hope it can help you.

1. Download the xdebug module

xdebug download address: https://xdebug.org/download.php

Note: "ts" means thread-safe, and "nts" is not marked. That is to say, if you want to download an unmarked file of nts, the downloaded file name is actually marked.

2. Install xdebug into php

Copy the downloaded dll to the ext folder in php (the extension dlls are all here), and rename it to php_xdebug.dll.

Modify in php.ini (add under "; Module Settings;"):

  1. [xdebug]  
    zend_extension=php_xdebug.dll  
    xdebug.remote_enable = On
    xdebug.remote_handler = dbgp
    xdebug.remote_host= localhost
    xdebug.remote_port = 9000
    xdebug.idekey = PHPSTORM


View on the phpinfo page , there will be xdebug related information, indicating that php has been configured!

3. Configure phpstorm








After hitting the breakpoint, you can start


##Related recommendations:

phpstorm+Xdebug Breakpoint debugging PHP

The above is the detailed content of phpstorm+xdebug implements breakpoint debugging of php. 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