Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pdb = Python Debugger

  • pdb

Include the following code in your script at any point, and run the script as you'd do normally. It will stop at the given point and enter the debugger.

import pdb; pdb.set_trace()

pdb