#compsci #python 

## General practices
- Read the error message and fix the line
- Insert `print()` statements: get more info about the errors
- Use IDE debuggers
- Use the [[pdb debugger]]

## IDLE debugging
IDLE debugging is initiated by selecting the Debug->Debugger menu option and then starting your script. Once it is enabled, you can set *breakpoints* in your code that stop its execution by *right-clicking* on lines, show variable values and etc.