February 2006
Intermediate to advanced
648 pages
14h 53m
English
This module provides an alternative exception handler that displays a detailed report whenever an uncaught exception occurs. The report contains source code, values of parameters, and local variables. Originally, this module was developed to help debug CGI scripts, but it can be used in any application.
enable([display [, logdir [, context [, format]]]])
Enables special exception handling. display is a flag that determines whether any information is displayed when an error occurs. The default value is 1. logdir specifies a directory in which error reports will be written to files instead of printed to standard output. When logdir is given, each error report is written to a unique file created by the tempfile.mkstemp() function (see p. ...