Download PHP extension xdebug https://xdebug.org, you can copy your own phpinfo paste into the https://xdebug.org/wizard.php, will generate the version you need to download, php.ini the settings statement.
Download and then put the PHP directory in the Ext folder, then set PHP.ini, at the end of the add
Zend_extension = C:\path\php\ext\php_xdebug-2.4.0rc4-5.6-vc11-x86_64.dll
Xdebug.remote_enable =1
Xdebug.remote_handler = DBGP
Xdebug.remote_host = localhost
Xdebug.remote_mode = req
Xdebug.remote_port = 9000
Xdebug.idekey=phpstorm
Then restart Apache to set the Phpstorm
1. Enter File>settings>php>servers, here to fill in the server side of the relevant information:
Name:localhost,
Host:localhost,
PORT:80,
Debugger:xdebug
If the custom domain name is set, the host sets the custom domain name, such as Laravel5.io
2. Go to File>settings>php>debug, locate the Xdebug tab, and port fill 9000
Enter FILE>SETTINGS>PHP>DEBUG>DBGP Proxy to fill in:
IDE Key:phpstorm
Host:localhost
Port:80
Setup is complete, click OK to exit.
Click on the menu bar of run>edit configurations ... In the popup window, add a Debug configuration:
Click the plus sign in the upper left corner to select PHP Web application
After filling out, set breakpoints in the code, and then turn on the phone icno monitoring, point small beetle start debugging
Then the next browser plugin, Xdebug helper, download good after the point options, IDE select Phpstorm, do not want to let the page display small beetle, you can set the domain filter
Basically finished, debugging on the phone icon to listen, set a good breakpoint, point small beetle open debugging, refresh the page visible results
PHP Setup Debugging tool xdebug Phpstorm IDE