BU Logo CS-140 Sect. B
Debugging Recommendations Fall 2020 home
 

Sometimes you run into a problem in your code. Whether it breaks during runtime or compile time, please make sure to follow these steps before asking for help:

  1. Spend at least 10 minutes trying to figure it out for yourself.
  2. Research...
  3. Unit Test...

    Do you have a unit test to help isolate the problem? If not, consider writing a short unit test. Each class should have its own unit test "main" (usually in class-nameTester.java) which instantiates an object in the class, invokes the methods in the class, and tests to make sure the methods are returning the right values.

  4. If we have not gotten to Eclipse yet use the Print debugger...
  5. If we have gotten to Eclipse, use the Eclipse debugger...
  6. Post General Questions on Piazza
  7. Post a Private Question on Piazza