Learn the basics of using Python’s built-in debugger, pdb. Note that this screencast was recorded before Python 3.6 and 3.7 so it does not cover some of the new enhancements in the debugger.
You can read the chapter this screencast is based on here: http://python101.pythonlibrary.org/chapter24_debugging.html