Php + phpStorm + xdebug configuration method _ php instance

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.