Phpstorm Configuring Xdebug for debugging PHP tutorials, phpstormxdebug
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 for reference only, the path to be replaced by 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 are still recommended settings, at least know to set these parameters ~
View phpinfo~
2.PHPSTORM settings
Landlord used to use Zendstudio, just started with phpstorm very egg pain, after a period of time found to be very useful ~
1. First check the Xdebug configuration of the Phpstorm
The debug port here is consistent with the xdebug.remote_port inside the php.ini! The default is 9000, and if the 9000 port is occupied, it can be changed to another port.
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 It's OK
Hit the first breakpoint, check the configured debug, press next to the bug button
Summarize:
Depending on the breakpoint configuration, or in the process of opening the debug URL, or after POST, if the Phpstorm supervisor hears the debug connection, it will immediately switch to the editor interface and jump to the set breakpoint, and the browser will wait for phpstorm operation.
You can interrupt Phpstorm debugging at any time, or conveniently perform Step into/step Over/run to the cursor (this diao explodes):
Oops, do not want to debug, phpstorm but always jump out? Remember just the phone button, then click, let it turn red, just fine.
http://www.bkjia.com/PHPjc/920618.html www.bkjia.com true http://www.bkjia.com/PHPjc/920618.html techarticle phpstorm configuring Xdebug for debugging PHP tutorial, phpstormxdebug 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 version ...