from:http://blog.csdn.net/ljfrocky/article/details/46531137
This article mainly describes how to use Phpstorm + xdebug debugging PHP program, need friends can refer to the next. Operating Environment
Phpstorm version: 8.0.3
PHP Version: 5.4.12
Xdebug version: Php_xdebug-2.2.3-5.4-vc9-x86_64.dll
Note: PHP version and xdebug version must be configured relative to the xdebug
Edit PHP.ini, the following configuration is for reference only, the path to change their own.
Zend_extension = "D:/wampserver2.4/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll"
[Xdebug]
xdebug.remote_enable = on
Xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote _port = 9000
Xdebug.idekey = Phpstorm
1 2 3 4 5 6 7
Note: Remote_handler, Remote_host, remote_port These all have default values, but the recommended settings, at least know to set these parameters ~
When configured, reboot the Apache configuration Phpstorm .
1. First check the Xdebug configuration of Phpstorm
The debug port here is to be consistent with the xdebug.remote_port inside the php.ini. The default is 9000, which can be changed to another port if 9000 ports are occupied.
2. Set Debug
Start Debugging
Hit the first breakpoint, select the configured Debug, and then press the next insect button to start debugging.
Summary
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 easy to carry out step into/step over/run to Cursor (this explosive)
Alas, do not want to debug, phpstorm but always jump out. Remember just that phone button, and then click, let it become red, just fine.
The content reproduced from: http://www.jb51.net/article/58069.htm, some text and pictures have been modified.