Python easily has the best debugger I've ever seen in a language.
``` import pdb; pdb.set_trace() ```
that's literally all you have to do at any point in your code. Run your code in the foreground of a terminal, and boom you have a debugger exactly where you want it.