PhpstormXdebug breakpoint debugging PHPmy. oschina. netyearnfarblog350051 running environment: PHPSTORM version: 8.0.1PHP version: 5.6.2xdebug version: php_xdebug-2.2.5-5.6-vc11-x86_64.dllps: php version and xdebug version must correspond to 1. install xdebug extension PHP in php. ini configuration,
PhpstormXdebug breakpoint debugging PHP http://my.oschina.net/yearnfar/blog/350051 runtime 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: php version and xdebug version must be relative to 1. install xdebug extension PHP in php. ini configuration,
Phpstorm + Xdebug breakpoint debugging PHP
Http://my.oschina.net/yearnfar/blog/350051
Running 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: php and xdebug versions must correspond to each other
1. Install xdebug extension in PHP
For php. ini configuration, the following configuration is for reference only, and the path should be replaced with your own!
[Xdebug]
Zend_extension = "D: \ wamp \ php-5.6.2-x64 \ ext \ php_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, and remote_port all have default values. However, we recommend that you set these parameters at least ~
View phpinfo ~
2. PHPSTORM settings
The landlord used zendstudio all the time. It was very painful to use phpstorm at the beginning. After using it for a while, I found it quite useful ~
1. Check the xdebug configuration of phpstorm.
The debug port here must be consistent with xdebug. remote_port in php. ini! The default value is 9000. If port 9000 is occupied, you can change it to another port.
2. Set debug.
Add a Local web server ~
Www.51open. pcom is my local web server ~ ~
3. Start debugging
Set the first breakpoint and shift + F9.
Set the first breakpoint, select the debug configuration, and press the bug button next to it.