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

4
How to Debug How to Debug
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    220
  • download

    3

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

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.