Question

What do you insert into Python source code to have it break into pdb (when execution gets to that spot)?

Was it helpful?

Solution

import pdb; pdb.set_trace()

See Python: Coding in the Debugger for Beginners for this and more helpful hints.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top