WAMP Environment Configuration Phpstorm the breakpoint debugging function. And open debug will appear waiting for incoming connetcion with IDE key XXX problem

Source: Internet
Author: User

My environment:

1. Modify the php.ini file (after the restart APACEH)

Xdebug.remote_enable = On
xdebug.idekey= Phpstrom

"Note: remote use of the following profile, local use of the configuration file above"

Remote_host refers to the address of the debug client, the IP where the IDE resides

Remote_port is the port of the client

These two in the case of remote debugging attention to change, remote when the final change to:

[XDebug]

Zend_extension = "D:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll"

Xdebug.profiler_append = 0

xdebug.profiler_enable = 1

Xdebug.profiler_enable_trigger = 0

Xdebug.profiler_output_dir = "D:/wamp64/tmp"

Xdebug.profiler_output_name = cachegrind.out.%t.%p

xdebug.remote_enable = 1

Xdebug.remote_handler = "DBGP"

Xdebug.remote_mode = "req"

Xdebug.remote_port = 9000

2. Open Phpinfo () to see the configuration, find the Xdebug entry, and find the description xdebug the configuration was successful.

The server configuration is complete!

3, the following is the client debugging. Open Phpstorm, enter file>settings>php (file-settings-language and frame-php), here to interpreter Browse, fill in D:\xampp\php\php.exe, automatically identify the version.

4, enter file>settings>php>servers, here to fill out the server side of the relevant information, name fill localhost,host fill localhost,port fill 80,debugger choose Xdebug.

5, enter File>settings>php>debug, see Xdebug tab, Port Fill 9000, other default.

6, enter FILE>SETTINGS>PHP>DEBUG>DBGP proxy,ide key fill phpstorm,host fill Localhost,port Fill 9000, click OK exit settings.

7. Modify Bugs or Web sites that are open at run time (you want to debug Web site URLs)

Click OK to exit the setup, the Phpstorm is automatically populated with localhost next to the Run button, and the Run button is activated by Gray to become green

8, Chrome browser link configuration. Find the corresponding plugin, chrome for phpstrom IDE support CHROME.CRX, download it yourself and drag the file to Chrome Settings > Extensions

Top right corner of Google Chrome

"The problem with the time of use:"

If this problem occurs locally, because the php.ini configuration file in 1 is not correct, please follow the php.ini modified in 1 and restart Apache

Note

If you need to switch the debug project, don't forget to modify the 7th step Oh ~

WAMP Environment Configuration Phpstorm the breakpoint debugging function. And open debug will appear waiting for incoming connetcion with IDE key XXX problem

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.