Commit ff667a5c authored by Raymond Hettinger's avatar Raymond Hettinger

SF patch #1068456: small update for pdb docs

parent a1d6068b
...@@ -42,6 +42,13 @@ a script to debug other scripts. For example: ...@@ -42,6 +42,13 @@ a script to debug other scripts. For example:
python -m pdb myscript.py python -m pdb myscript.py
\end{verbatim} \end{verbatim}
When invoked as a script, pdb will automatically enter post-mortem debugging
if the program being debugged exits abnormally. After post-mortem debugging
(or after normal exit of the program), pdb will restart the program.
Automatic restarting preserves pdb's state (such as breakpoints) and in most
cases is more useful than quitting the debugger upon program's exit.
\versionadded[Restarting post-mortem behavior added]{2.4}
Typical usage to inspect a crashed program is: Typical usage to inspect a crashed program is:
\begin{verbatim} \begin{verbatim}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment