One: Installation settings xdebug
This generally has two steps 1: Browser Xdebug plug-in installation, generally with Firefox plug-in, Chrome seems to be not very good
After installation as shown, you need to configure Idekey fill in the Phpstorm, open the browser, if it is Chrome or Firefox can find the corresponding Xdebug tool, the tool's settings in the IDE key to fill in the Phpstorm,. If you are using a different browser, you can access http://www.jetbrains.com/phpstorm/marklets/, on the right to fill in phpstorm, point generate, add the following link to the favorites, convenient to call.
2:ok, the second step, php.ini file configuration, I use the WINDOW7 environment, configuration as shown, restart Apache after doing well (Linux restart nginx,phpfpm).
Use Phpinfo () to view the environment output, whether there is a xdebug module appears.
(or save the file, open Apache, this time in the cmd input D:\xampp\php\php.exe-m see Xdebug, indicating the success of the Open.) At this point, the server-side configuration is complete)
The basic has been completed, let's go to the next key.
II: Phpstorm Configuration
1:file =>settings=>languages && frameworks=>php=>servers as configured, fill in the Host,name,port, select Debugger.
2:file =>settings=>languages && frameworks=>php=>debug as configured, fill in the port.
3:file =>settings=> Languages && FRAMEWORKS=>PHP=>DEBUG=>DBGP Proxy as configured, fill in the Idkey,host,port; as shown in:
Click OK
4: Click on the top right corner of Phpstorm
Appear
The user.php?action=login here is the entry point to be debugged;
Three: Commissioning
Debugging started, need to turn on listening start listening for PHP debug connections (like the phone icon button), and then select the application to start debugging, click Debug Debug App (your app) can start debugging program.
Windows environment phpstorm Debug Environment Setup