Fix Log (Debugging Record)¶
Use this log to record errors, fixes, and lessons learned while working on Python activities.
Debugging means finding and fixing problems in code. Errors are normal. The purpose of this log is to help you slow down, notice clues, and learn from each fix.
Example Entry¶
Fix Entry 1¶
- Error Message:
NameError: name 'totl' is not defined - What Caused the Error: I typed
totlin theprint()statement, but my variable was namedtotal. - How I Fixed It: I changed
totltototalso the spelling matched. - What I Learned: Python variable names must be spelled exactly the same way each time.
My Fix Entries¶
Copy the entry format below each time you fix an error or improve your code.
Fix Entry 1¶
- Error Message:
- What Caused the Error:
- How I Fixed It:
- What I Learned:
Fix Entry 2¶
- Error Message:
- What Caused the Error:
- How I Fixed It:
- What I Learned:
Fix Entry 3¶
- Error Message:
- What Caused the Error:
- How I Fixed It:
- What I Learned:
Debugging Reminder¶
When something breaks:
- Read the error message.
- Check the line mentioned by the error.
- Compare your code to a working example.
- Change one thing at a time.
- Run the code again.
- Record what you learned.