This article describes how to configure php + phpStorm + xdebug. For more information, see
1. Download The xdebug File
Http://xdebug.org/wizard.php
Copy the source code of phpinfo () to the text box. xdebug prompts you how to configure and download the version of xdebug.
ALL:
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 = Onxdebug.remote_handler = "dbgp"xdebug.remote_host = "localhost"xdebug.remote_port = 9000xdebug.idekey = PHPSTROM
3. chrome xdebug Configuration
Configure it as "phpStorm" in the IDE key"
Project address: https://github.com/mac-cain13/xdebug-helper-for-chrome
4. phpStorm Configuration
Open phpStorm,
-Go to File> Settings> PHP> Servers. Enter the server information here. Enter localhost for name, localhost for host, 80 for port, and debugger for name.
Select XDebug
-Go to File> Settings> PHP> Debug. The XDebug tab is displayed. Set port to 9000.
-Choose File> Settings> PHP> Debug> DBGp Proxy. Set phpStorm as the IDE key, localhost as the host, and 80 as the port.
-Click OK to exit the settings.
5. Other configurations:
Enable the listener (phone button) in phpStorm ).
Restart apache, such as using the command line: net stop apache24 & net start apache24;
Check whether xdebug is correctly configured: Go to the php.exe Directory: Execute php.exe-m to view related modules.
Related Files:
Http://pan.baidu.com/share/link? Consumer id = 1091659896 & uk = 3829305083
Http://pan.baidu.com/share/link? Consumer id = 1099541549 & uk = 3829305083
The above content is the php + phpStorm + xdebug configuration method introduced in this article.