1. Download the xdebug file
http://xdebug.org/wizard.php
Copy the source code of phpinfo() into the text box, xdebug will prompt how to configure and which version of xdebug to download.
All download addresses:
http://www.xdebug.org/download.php
2. Configure php.ini and add it at the end.
zend_extension="php_xdebug-2.3.3-5.6-vc11.dll" xdebug.remote_enable = On xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_port = 9000 xdebug.idekey = PHPSTROM
3.chrome’s xdebug configuration
Configure it to "phpStorm" in the IDE key
Project address: https://github.com/mac-cain13/xdebug-helper-for-chrome
4.phpStorm related configuration
Open phpStorm,
-Enter File>Settings>PHP>Servers. Here you need to fill in the relevant information on the server side. Fill in localhost for name, fill in localhost for host, fill in 80 for port, and debugger
Select XDebug
-Enter File>Settings>PHP>Debug, see the XDebug tab, fill in port 9000, and other defaults
-Enter File>Settings>PHP>Debug>DBGp Proxy, fill in phpStorm for IDE key, fill in localhost for host, and fill in 80 for port
-Click OK to exit settings.
5. Other configurations:
Turn on monitoring (phone button) in phpStorm.
Restart apache, such as using the command line: net stop apache24 & net start apache24;
Check whether xdebug is configured correctly: Enter the php.exe directory: execute php.exe -m to view related modules.
Related file download address:
http://pan.baidu.com/share/link?shareid=1091659896&uk=3829305083
http://pan.baidu.com/share/link?shareid=1099541549&uk=3829305083
The above content is the php phpStorm xdebug configuration method introduced in this article. I hope you like it.