| 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:
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.