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.