What is the role of the php debugging function? of course, it is mainly to discover bugs. Is there any other function? for example, is it possible to find out the logic structure of the code? please advise.
Reply to discussion (solution)
Can you find that the bug is not enough? You can also find the logic structure based on the bug.
The following settings are set in system debugging configuration:
Enable logging. all error information and debugging information are recorded in detail to facilitate debugging;
Disable Template caching. template modifications take effect immediately;
Records SQL logs to facilitate SQL analysis;
Disable field caching. modifying data table fields is not affected by caching;
Enable strict file case check (even on Windows) to help you detect Linux deployment problems in advance;
The purpose of the debugging mode is to more easily discover, record, analyze, and solve errors. However, in the deployment mode, you may not find many potential errors, these errors are like a time bomb, which has potential risks.