summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.doc
diff options
context:
space:
mode:
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',