Optimized Debug Process for Engineers

movie_matrix-1322913-1920x1080

Optimized Debug Process
1. Reproduce the problem
2. Analysis possible point of error
3. Reproduct problem with point of error caught by console log = Proof
4. Find Methodology of Fix
5. Plan Fix
6. Fix it
7. Success

Crash Bug – how to fix? Best algorithm
Crash Bug are some bug which don’t output anything, just crash. Often the engineer has completely no idea where the problem is.
1. Remove lines of codes. Trace back to a point where there is no crash. Set it as a Starting Point (A).
2. Mark the current point as (B).
3. Use a divide and conquer approach. Between (A) and (B), find a middle point (C) which is no crash. Removing and adding back lines of codes, or mark them comment.
4. Minimize the scope until you find which line is the cause of problem.
5. Go to Optimized Debug Process (3) above

發表留言