The Eclipse PHP XDebug breakpoint is not valid (that is, the breakpoint does not stop) solution ____php

Source: Internet
Author: User
Tags php server

You have previously encountered the following when configuring Eclipse PHP Xdebug:

After you start debugging through webpage, you can debug, that is, "break at the".

However, breakpoint debugging cannot be done, that is, the breakpoint is not stopped when debugging, and the value of the variable cannot be seen.

This is most likely because the path mapping of PHP server is set incorrectly.

Wrong setting:

Path on Server:http://localhost/sample

Local Path:/sample

Modified to:

Path on server:/sample

Local Path:/sample

The following figure:

If you debug again, you can stop at the breakpoint correctly.

As for debugging, the value of a variable cannot be displayed, that is, a situation that is displayed as "uninitialized".

That's because of the xdebug version problem, which is that the xdebug in front of version 2.1 will have this bug.

How do you find the version you need in a number of xdebug versions?

Visit the following links:

http://xdebug.org/find-binary.php

Paste the contents of the Phpinfo () into the input box of the linked page above, and click Submit.

You will then see the results of the analysis, which is the recommended installation of the Xdebug version.

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.