ipython --pdb

Category: Data Science & Analysis

ipython --pdb

Drop into the debugger on any exception

The --pdb flag makes IPython start the interactive debugger automatically whenever code raises an exception. You can then inspect variables and step through frames at the exact failure point. This is faster than adding print statements when debugging a session. The debugger prompt supports commands like up, down, and where to navigate the call stack.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.