From 3577113d8366d1c75cf2cbdbeb5168fd86d2834c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 8 Sep 1992 11:59:04 +0000 Subject: 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. --- Lib/pdb.doc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Lib/pdb.doc') diff --git a/Lib/pdb.doc b/Lib/pdb.doc index 0ae4c0e2e8..c92b57229d 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 . +Alternatively, if a statement terminated with an unhandled exception, +you can use pdb's post-mortem facility to inspect the contents of the +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', -- cgit v1.2.1