summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-11-18 08:39:33 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-11-18 08:39:33 (GMT)
commita2325f67a12f716b622ea53c605b868bcaa039ba (patch)
treef2b67ba826f6b1f018b01644edc1143993630037
parenteac02e614ba8eacd3f903716ae11c87679df74c9 (diff)
downloadcpython-a2325f67a12f716b622ea53c605b868bcaa039ba.zip
cpython-a2325f67a12f716b622ea53c605b868bcaa039ba.tar.gz
cpython-a2325f67a12f716b622ea53c605b868bcaa039ba.tar.bz2
SF patch #1068456: small update for pdb docs
-rw-r--r--Doc/lib/libpdb.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/lib/libpdb.tex b/Doc/lib/libpdb.tex
index 81dc1e2..6301175 100644
--- a/Doc/lib/libpdb.tex
+++ b/Doc/lib/libpdb.tex
@@ -42,6 +42,13 @@ a script to debug other scripts. For example:
python -m pdb myscript.py
\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:
\begin{verbatim}