Operating environment:
PHPSTORM version: 8.0.1
PHP version: 5.6.2
xdebug version: php_xdebug-2.2.5-5.6-vc11-x86_64.dll
ps: The php version and the xdebug version must be consistent Corresponding to the configuration of
PHP installation xdebug extension
php.ini, the following configuration is for reference only, the path must be replaced with your own!
[xdebug]
zend_extension=”D:wampphp-5.6.2-x64extphp_xdebug-2.2.5-5.6-vc11-x86_64.dll”
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug. remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
ps: remote_handler, remote_host, remote_port all have default values, but it is still recommended to set them, at least know to set these parameters~
Check phpinfo~
2.PHPSTORM settings
The poster has been using zendstudio before. It was very painful to use phpstorm at the beginning. After using it for a while, I found that it is quite easy to use~
1. First check the xdebug configuration of phpstorm
Here The debug port must be consistent with the xdebug.remote_port in php.ini! The default is 9000.
If port 9000 is occupied, it can be changed to other ports.
Set debug.
Add local web server~
www.51open.pcom is my local web server~ ~
3. Start debugging
Put the first breakpoint, just shift + F9
Put the first breakpoint, select the configured debug, and press the bug button next to it
The above introduces the tutorial on how to configure Xdebug in phpstorm to debug PHP, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.