PhpStorm10 breakpoint debugging

Source: Internet
Author: User
: This article mainly introduces phpStorm10 breakpoint debugging. For more information about PHP tutorials, see. Download Xdebug

Preparation phase

Add a phpinfo. php file under localhost


  

Access http: // localhost/phpinfo. php in the browser. The following is displayed:

Ctrl+ASelect all text,Ctrl+CCopy.

Download the appropriate Xdebug official websitedllFile

Open Window: http://xdebug.org/wizard.php, add text to input box,

Follow InstructionsStep by step.

Set php.ini

Documents: https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html

DownloadXdebug helper

Chrome online app store https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc? Hl = zh-CN

Configure and select phpStorm to add the website domain name to the whitelist.

Visit the site in the whitelist and you will see the following:

Download phpStorm

Cracking

Download: https://www.jetbrains.com/phpstorm/download/#section=windows-version
Select the License server during registration and enterhttp://idea.lanyus.com/

Configure the php environment

Configure debug

  • Ensure the port number andphp.inIf no port is set, the default value is9000.

  • SetDBGp Proxy

Set PHP Web Application

  • Set server

  • Add configuration. in the upper-right corner of phpStorm, SelectEdit Configurations...And then configure the site

Breakpoint debugging

Start Listening for PHP Debug Connections

Set breakpoints

Access this Action

PhpStorm automatically pops up. let's check the variables as follows:

Success!

The above introduces phpStorm 10 breakpoint debugging, including some content, and hope to be helpful to friends who are interested in PHP tutorials.

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.