summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-09-08 11:59:04 (GMT)
committerGuido van Rossum <guido@python.org>1992-09-08 11:59:04 (GMT)
commit3577113d8366d1c75cf2cbdbeb5168fd86d2834c (patch)
tree1522d69f53f331f7e9ecf11b820baf7fdb67fb46 /Lib/pdb.doc
parent7b3c8a1422be4e2d7bc5e59779071432ef57c1cb (diff)
downloadcpython-3577113d8366d1c75cf2cbdbeb5168fd86d2834c.zip
cpython-3577113d8366d1c75cf2cbdbeb5168fd86d2834c.tar.gz
cpython-3577113d8366d1c75cf2cbdbeb5168fd86d2834c.tar.bz2
Added post_mortem() and pm() interfaces to pdb and wdb.
Added colorsys.py (color system conversions). SV.py: new version for new svideo.h (Sjoerd). DEVICE.py: added VIDEO event type.
Diffstat (limited to 'Lib/pdb.doc')
-rw-r--r--Lib/pdb.doc9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/pdb.doc b/Lib/pdb.doc
index 0ae4c0e..c92b572 100644
--- a/Lib/pdb.doc
+++ b/Lib/pdb.doc
@@ -9,6 +9,15 @@ To use the debugger in its simplest form:
The debugger's prompt is '(Pdb) '. This will stop in the first
function call in <a statement>.
+Alternatively, if a statement terminated with an unhandled exception,
+you can use pdb's post-mortem facility to inspect the contents of the
+traceback:
+
+ >>> <a statement>
+ <exception traceback>
+ >>> import pdb
+ >>> pdb.pm()
+
The commands recognized by the debugger are listed in the next
section. Most can be abbreviated as indicated; e.g., h(elp) means
that 'help' can be typed as 'h' or 'help' (but not as 'he' or 'hel',