What is the function of PHP debugging?

Source: Internet
Author: User
Of course, the main is to find the bug, otherwise there is no other role, such as it can find out the code logic structure What, there is this confusion, please advise.


Reply to discussion (solution)

It is not enough to find the bug, and the logical structure can be found based on the bug.

The system Debug configuration is set up in:

Turn on logging, any error messages and debugging information will be recorded in detail, easy to debug;
Close the template cache, template modification can be effective immediately;
Log SQL logs for easy analysis of SQL;
Close the field cache, and the data table fields are not affected by the cache;
Turn on file case checking (even the Windows platform) to help you discover Linux deployment issues ahead of time;

The purpose of debug mode is to make it easier to find, record, analyze and resolve errors, and in the deployment mode, there may be many potential errors you can not find, these errors like a timing *, there is a hidden danger.

  • 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.