Agility debugging problems

Experienced developers know that software development time is generally only 20%, while the other most of the time is a problem locating debugging, maintenance optimization. Efficient debugging, reduce maintenance modification time to pay attention to do the following:
  1. Record solve the problem log retention solutions to fix the problem as part of the process, when the same or similar problems occur in the future, you can quickly find and use.
  2. Warning is wrong, check the code with a warning, just check for errors or did not pass the test code, are very poor practice. Check-in tools to build the code should not generate any warning messages.
  3. For each break issue in solving problems, to isolate the problem domain and the surrounding. Especially in large applications.
  4. Report all exceptions, they do not suppress the matter, even if doing so does not work temporarily, when writing code to estimate the problems occur.
  5. Provide useful error messages provide more details easy to find the wrong way, if a problem occurs, you want to demonstrate as many supporting details, but do not let the user into them.

Guess you like

Origin www.cnblogs.com/doit8791/p/11094898.html