45 Habits of efficient programmers--agile debugging (Ⅶ)

Source: Internet
Author: User

True master only know how to mend!!

Record the problem resolution log:

When the same or similar problems occur later, it can be quickly found and resolved;

To share the logs with the team, not just by one person;

Second, the warning is error:

Ignore the warning information to continue to develop the code, no doubt the program loaded with a time bomb, it is likely to explode at the worst moment and difficult to solve;

  Some warnings can be a serious mistake!

Third, the question conquer:

Do not try to understand all the details of the system immediately, in order to carefully debug, you have to separate the problematic modules and other code base;

It is useful to locate the problem in two-point way!

Iv. Report All exceptions:

The reported exception should have practical meaning in the context of the Code;

To propagate exceptions that cannot be handled;

V. To provide useful error messages:

Provide a more easy way to find the wrong details, and don't let users get confused;

Distinguish between error-type program defects, environmental issues, and user errors;

Do not disclose security information, personal information, trade secrets or other sensitive information;

  

45 Habits of efficient programmers--agile debugging (Ⅶ)

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.