O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

cgitb

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required