Windows environment phpstorm Debug Environment Setup

Source: Internet
Author: User
Tags php debug

One: Installation settings xdebug

This generally has two steps 1: Browser Xdebug plug-in installation, the general use of Firefox plug-ins, chrome seems to be not very good, chrome after the installation of the effect

After installation as shown, you need to configure Idekey fill in the Phpstorm, open the browser, if it is Chrome or Firefox can find the corresponding Xdebug tool, the tool's settings in the IDE key to fill in the Phpstorm,. If you are using a different browser, you can access http://www.jetbrains.com/phpstorm/marklets/, on the right to fill in phpstorm, point generate, add the following link to the favorites, convenient to call.

The PHP environment only needs to open the php_xdebug extension.

2:ok, the second step, php.ini file configuration, I use the WINDOW7 environment, configuration as shown, restart Apache after doing well (Linux restart nginx,phpfpm).

Use Phpinfo () to view the environment output, whether there is a xdebug module appears.



(or save the file, open Apache, this time in the cmd input D:\xampp\php\php.exe-m see Xdebug, indicating the success of the Open.) At this point, the server-side configuration is complete)
The basic has been completed, let's go to the next key.

II: Phpstorm Configuration

0:file=>settings=>build,execution,deployment as shown:

To configure the contents of the mappings tag, here is the error:

Otherwise, this error will occur at the next verification:

This is the right thing to do:

1:file =>settings=>languages && frameworks=>php=>servers as configured, fill in the Host,name,port, select Debugger.

This machine, do not need to configure the URL mapping, after configuring the Phpstorm verification function to verify, that is, validate remote environment; When verifying, turn off monitoring (starting listening for PHP debug C Onnections); After success as shown:

2:file =>settings=>languages && frameworks=>php=>debug as configured, fill in the port.

3:file =>settings=>languages && FRAMEWORKS=>PHP=>DEBUG=>DBGP Proxy as configured, fill in the Idkey,host,port ; as shown:

4:run= "Edit Configurations

The user.php?action=login here is the entry point to be debugged;

Three: Commissioning

Debugging started, need to turn on listening start listening for PHP debug connections (like the phone icon button), and then select the application to start debugging, click Debug Debug App (your app) can start debugging program.

Browsers and Phpstorm can communicate with each other, and the input of the browser is returned to Phpstorm, such as a form submission.

Reference: http://www.tuicool.com/articles/2Mfy6n

Http://www.chenxuanyi.cn/xampp-phpstorm-xdebug.html

http://blog.csdn.net/meegomeego/article/details/25731615

Windows environment phpstorm Debug Environment Setup

Related 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.