1.3.2.3 Post-Mortem Debugging within pydb

When invoked as a script, pydb will automatically enter post-mortem debugging if the program being debugged exits abnormally.

After post-mortem debugging (or after normal exit of the program), pydb will restart the program. Automatic restarting preserves pydb's state (such as breakpoints) and in most cases is more useful than quitting the debugger upon the program's exit.

See About this document... for information on suggesting changes.