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, generally with Firefox plug-in, Chrome seems to be not very good

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.



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

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

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 in:

Click OK

4: Click on the top right corner of Phpstorm

Appear

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.

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.