]> granicus.if.org Git - python/commitdiff
SF patch #1068456: small update for pdb docs
authorRaymond Hettinger <python@rcn.com>
Thu, 18 Nov 2004 08:39:33 +0000 (08:39 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 18 Nov 2004 08:39:33 +0000 (08:39 +0000)
Doc/lib/libpdb.tex

index 81dc1e2e8708232b606bae7f736991fc15329cb6..6301175d34cc19cfa98f6ea331e555f0a577ba36 100644 (file)
@@ -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}