phpstrom uses xdebug configuration method_PHP tutorial

WBOY
Release: 2016-07-13 17:17:58
Original
1106 people have browsed it

1 Go to http://xdebug.org/download.php to download xdebug. Pay attention to find your corresponding php version. Or you can copy the phpinfo information through the http://xdebug.org/wizard.php page and click on the analysis at the bottom. It will tell you which version to download and then how to configure it.

2. Open php.ini and add the following statement

Copy the code The code is as follows:

[XDEBUG]
zend_extension = "D:Program Files (x86)php5extphp_xdebug.dll"
xdebug.remote_enable=on
; This address is the IP where the IDE is located
xdebug.remote_host=127.0.0.1
xdebug. remote_port=9000
; can be any Key, here it is set to PHPSTORM
xdebug.idekey="PhpStorm"


3. Configure IDE

In Settings, select PHP -> Debug, fill in the port you just set in xdebug, and confirm.

4. Configure the browser

Install Xdebug helper on Chrome. Set the Key equal to the key set in php.ini

5. Debugging process: At the bottom of the run menu of PhpStorm, select Start Listen PHP Debug Connections to turn on monitoring. When the browser accesses the breakpoint, PhpStorm will automatically respond.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/621686.htmlTechArticle1 Go to http://xdebug.org/download.php to download xdebug. Pay attention to find your corresponding php version. Or you can copy the phpinfo information through the http://xdebug.org/wizard.php page and click...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!