Configuration of Phpstrom and Xdebug

Source: Internet
Author: User

Today learning to configure the Phpstrom and Xdebug configuration method, found on the Internet more than n tutorials, there are understandable, there are many incomprehensible. Finally the configuration is ready, now share my configuration process. It's not easy to get on the road.

First of all, I am configuring Xdebug in XAMPP Environment, because the default php.ini has already written the Xdebug configuration information, as long as the comment is opened, there is one: xdebug.remote_enable=0 need to change it to 1 (open state), Otherwise, setting breakpoints will not work if the installation is successful.

In addition, although there are php_xdebug.dll files under php/ext/, but there is no xdebug information in the view phpinfo.php, the Xampp file in the Xdebug.dll package does not match my environment, so in/HTTP xdebug.org/download.php re-downloaded one, which is suitable for the environment, can be seen from the phpinfo:

You can then see the xdebug information from phpinfo to indicate that the installation was successful.
Next, configure Phpstrom, two-step:
1, File--Setting, PHP--Servers
Right Point + (new), fill in your information:

When finished, click Apply below.
Then see if the port is 9000 in the Debug option in PHP.

Then OK to exit.

2. Run, Edit configurations

             

Then Apply, OK!
This makes the configuration even more complete.

Hope to have other useful experience you can share together!

Configuration of Phpstrom and Xdebug

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.