Oct 13, 2017

We can use pdb module to set breakpoints in Python scripts

import pdb
pdb.set_trace()

We can specify anywhere in the script <pdb.set_trace()>and set a breakpoint there, which is fairly straightforward.