A quickie:
import ipdb; ipdb.set_trace()
This puts a breakpoint in the code using ipdb. It has the advantage of having better formatted output, tab completion etc over the vanilla pdb