Debuging Cite

 Seven steps in debugging

Track the problem in the database.(CQ)

(See what happens in logs...)

Reproduce the failure.

Automate and simplify the test case.(Normal and abnormal)

Find possible infection origins.

Focus on the most likely origins:

■ Known infections

■ Causes in state, code, and input

■ Anomalies

■ Code smells

Isolate the infection chain.

Correct the defect.

 

Vocabulary:

■ Defect:An incorrect program code (a bug in the code).

■ Infection:An incorrect program state (a bug in the state).

■ Failure:An observable incorrect program behavior (a bug in the behavior).

 

 

你可能感兴趣的:(debug)