phpstorm+xdebug implements breakpoint debugging of php

小云云
Release: 2023-03-21 20:28:01
Original
1413 people have browsed it

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
    Copy after login


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!

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!