+ All Categories
Home > Documents > How to Debug Debugging Detectives Debugging Desperados I GIVE UP! MyClass.java.

How to Debug Debugging Detectives Debugging Desperados I GIVE UP! MyClass.java.

Date post: 21-Dec-2015
Category:
View: 221 times
Download: 3 times
Share this document with a friend
Popular Tags:
4
How to Debug How to Debug
Transcript
Page 1: How to Debug Debugging Detectives Debugging Desperados I GIVE UP! MyClass.java.

How to DebugHow to Debug

Page 2: How to Debug Debugging Detectives Debugging Desperados I GIVE UP! MyClass.java.

Debugging DetectivesDebugging DetectivesDebugging DesperadosDebugging Desperados

I GIVE UP!

MyClass.java

Page 3: How to Debug Debugging Detectives Debugging 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

Page 4: How to Debug Debugging Detectives Debugging Desperados I GIVE UP! MyClass.java.

Recommended