Introduction to the configuration method of Xdebug in Phpstorm

Source: Internet
Author: User
This article to share the content is about Xdebug in the phpstorm in the configuration, there is a certain reference value, hope can help to the needs of friends.

  1. PHP configuration: Turn on Xdebug
    In the Xdebug configuration section of the php.ini file, add the following configuration options. The main implication is to set the address, port number, and representation of the Phpstorm debug client.

       xdebug.remote_enable = on    xdebug.auto_trace = on   xdebug.remote_handler=dbgp   xdebug.remote_host= localhost   xdebug.remote_port=9000   xdebug.idekey=phpstorm

    After the configuration is complete, open phpstorm, set (setting) PHP parser, you should see that the Xdebug extension is installed, otherwise check the configuration file.

2. Debug a single PHP file
To debug a single PHP file, you need to configure the DBGP parameter to match the configuration parameters of the Xdebug. As shown in.

You can then debug a single php file by selecting PHP script in the Run>edit configurations.

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.