Eclipse PHP xdebug breakpoint is invalid (that is, the breakpoint is not stopped) Solution

Source: Internet
Author: User
Tags php server

The following situations were encountered during eclipse PHP xdebug Configuration:

After webpage is enabled for debugging, you can perform debugging, that is, "break at the first line ".

However, resumable debugging cannot be performed, that is, when a breakpoint is debugged, it cannot be stopped, and the value of the variable cannot be seen.

 

This is probably because the path mapping settings of the PHP server are incorrect.

 

Incorrect settings:

Path on server: http: // localhost/sample

Local path:/sample

 

To:

Path on server:/sample

Local path:/sample

For example:

 

After debugging again, you can stop at the breakpoint correctly.

 

When debugging, variable values cannot be displayed, that is, they are all displayed as "uninitialized.

This is because of the xdebug version issue, that is, xdebug Before Version 2.1 will have this bug.

 

In many xdebug versions, how do I find the desired version?

Visit the following link:

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

 

Paste the content of phpinfo () to the input box on the page above, and click Submit.

The analysis result is displayed, that is, the recommended 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.