Home >Backend Development >PHP Tutorial >php phpStorm xdebug configuration method, phpstormxdebug_PHP tutorial

php phpStorm xdebug configuration method, phpstormxdebug_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 09:08:261045browse

php phpStorm xdebug configuration method, phpstormxdebug

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.

<span>[xdebug]
zend_extension</span>="php_xdebug-2.3.3-5.6-vc11.dll"<span>
xdebug</span>.remote_enable =<span> On
xdebug</span>.remote_handler = "dbgp"<span>
xdebug</span>.remote_host = "localhost"<span>
xdebug</span>.remote_port = 9000<span>
xdebug</span>.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, localhost for host, and 80 for port. Select XDebug for debugger
-enter File>Settings> ;PHP>Debug, see the XDebug tab, fill in 9000 for port, 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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1055135.htmlTechArticlephp phpStorm xdebug configuration method, phpstormxdebug 1. Download the xdebug file http://xdebug.org/wizard.php will Copy the source code of phpinfo() into the text box, xdebug will prompt how to configure and download...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn