Phpstorm configuration xdebug for debugging PHP tutorial to share with you, specific content as follows
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:php version and Xdebug version must be relative
1. PHP Installation Xdebug extension
PHP.ini configuration, the following configuration is for reference only, the path to change their 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, remote_port These all have default values, but it is recommended that, at least know to set these parameters ~
View phpinfo~
2.PHPSTORM settings
The landlord has been using Zendstudio, just started with phpstorm very egg pain, after a period of time to find a pretty good use of ~
1. First check the Xdebug configuration of Phpstorm
The debug port here should be consistent with the Xdebug.remote_port in php.ini! The default is 9000, which can be changed to another port if 9000 ports are occupied.
2). Set Debug.
Add a local Web server~
Www.51open.pcom is my local web server~ ~
3). Start debugging
Hit the first breakpoint, SHIFT + F9 is fine.
Hit the first breakpoint, select the configured Debug, and press the bug button next to
Summarize:
Depending on the breakpoint configuration, or when the debug URL is opened, or after POST, if Phpstorm hears the debug connection, it immediately switches to the editor interface and jumps to the set breakpoint, and the browser side waits for the phpstorm operation.
You can interrupt Phpstorm debugging at any time, or facilitate the step Into/step over/run to Cursor (this explosive):
Ah, do not want to debug, but Phpstorm always jump out? Remember just that phone button, and then click, let it become red, just fine.
The above is the entire content of this article, I hope that you learn PHP programming help.