Date post: | 21-Dec-2015 |
Category: |
Documents |
View: | 221 times |
Download: | 3 times |
How to DebugHow to Debug
Debugging DetectivesDebugging DetectivesDebugging DesperadosDebugging Desperados
I GIVE UP!
MyClass.java
How to be a Debugging DetectiveHow to be a Debugging Detective
1. identify the crime • how does the output differ from what is expected?
2. based on the evidence, name the likely suspects • determine which code is probably responsible by
looking at the output or the error message(s)3. form your hypotheses for how the crime was
committed• what are the possible bugs in the code?
4. for each bug suggest a possible fix and try it • if it works, great• if it doesn’t then remove your fix and form a new
hypothesis