A, XDebug installation configuration
(1) Download XDebug Download: http://www.xdebug.org/ must match the downloaded version of php installed on the machine with the job. DETAILED download as follows: The source of the page copy phpinfo to http://www.xdebug.org/find-binary.php , then follow the instructions to install. As shown below:
(2) is mounted according to the diagram XDebug Download "php_xdebug-2.3.2-5.4-vc9.dll", copy it to d: \ php \ ext \ directory.
(3) arranged to open XDebug d: \ php \ php.ini, at the end add the following code:
[Xdebug]
zend_extension = d:\php\ext\php_xdebug-2.3.2-5.4-vc9.dll
xdebug.remote_enable =1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_mode = "req"
xdebug.remote_port = 9000
Restart Apache.
(4) verify the installation detection method 1: In phpinfo page can be retrieved XDebug words, the installation is successful, as shown below:
Detection Method 2:
Enter php -m in cmd, you can see XDebug configuration was successful. As shown below:
Two, PHPStorm in XDebug configuration [File] -> [Settings] -> [Languages & Frameworks] -> [PHP] in the Setting:
(1) Configuration Servers] [PHP Server found, configuration items as follows: Name: localhostHost: localhostPort: 80Debugger: XDebug as shown below:
(2) Configuration [Debug] PHP Debug found, XDebug the Debug Port to fill in 9000, other default. As shown below:
Three, Fireforx XDebog helper plug-in configuration
(1) mounted XDebug helper plug as shown below:
(2) Configuration XDebug helper plug in the figure above, click [option], and is configured as follows: IDE key: PhpStormDomain filter:
localhost as shown below:
The use of XDebug debugging methods and procedures
(1) open in PHPStorm click the Debug monitor the same as the phone icon to open the Debug monitor, as shown below:
(2) open XDebug helper plug-in Chrome browser
Method One: In the address bar, click on the insects, the Debug selected, as shown below:
Method two: Use shortcut: CTRL + SHIFT + X configuration.
(3) disposed in the space behind the row number breakpoint PHPStorm click to set a breakpoint.
(4) and then guided to the corresponding breakpoints, breakpoint at the browser is automatically broken off method, as shown below:
Red box has all breakpoints handling tips and shortcuts.