Debugging Python with ipdb and Sypder
A powerful debugging tool for Python is the pdb (or ipdb) tool that is part of the Integrate Development Environment of Spyder (available from the Anaconda download). This exercise shows how to debug code to fix syntax and logical programming errors.
source