How to configure php+phpStorm+xdebug
Editor to share with you how to configure php+phpStorm+xdebug, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. Download the xdebug file
Http://xdebug.org/wizard.php
Copy the source code of phpinfo () into the text box, and xdebug prompts you how to configure and download which version of xdebug.
Download all address:
Http://www.xdebug.org/download.php
two。 Configure php.ini, adding 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
Xdebug configuration of 3.chrome
Configure it as "phpStorm" in IDE key
Project address: https://github.com/mac-cain13/xdebug-helper-for-chrome
Related configuration of 4.phpStorm
Open phpStorm
-enter File > Settings > PHP > Servers, where you need to fill in the relevant information on the server side. Enter name, enter localhost,port, and enter 80 debugger.
Choose XDebug
-enter File > Settings > PHP > Debug, and see the XDebug tab. Enter 9000 for port. Other defaults
-enter File > Settings > PHP > Debug > DBGp Proxy,IDE key, fill in phpStorm,host, fill in localhost,port, fill in 80
-Click OK to exit the setting.
5. Other configurations:
Turn on the monitor (phone button) in phpStorm.
Restart apache, such as using the command line: net stop apache24 & net start apache24
Check whether xdebug is configured correctly: go to the php.exe directory: execute php.exe-m to view the relevant modules.
The above is all the content of this article "how to configure php+phpStorm+xdebug". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!