Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6e70e8b4
Kaydet (Commit)
6e70e8b4
authored
Ara 04, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documentation for the "cgitb" module.
üst
62c1e3c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
libcgitb.tex
Doc/lib/libcgitb.tex
+40
-0
No files found.
Doc/lib/libcgitb.tex
0 → 100644
Dosyayı görüntüle @
6e70e8b4
\section
{
\module
{
cgitb
}
---
Traceback manager for CGI scripts
}
\declaremodule
{
standard
}{
cgitb
}
\modulesynopsis
{
Configurable traceback handler for CGI scripts.
}
\moduleauthor
{
Ka Ping Yee
}{
ping@lfw.org
}
\sectionauthor
{
Fred L. Drake, Jr.
}{
fdrake@acm.org
}
\index
{
CGI!tracebacks
}
\index
{
traceback!in CGI scripts
}
The
\module
{
cgitb
}
module provides a special exception handler for CGI
scripts. Using this module, an exception raised and left uncaught in
a CGI script can be presented as colorized HTML in the user's Web
browser. The options to the
\function
{
enable()
}
function can be used
to control whether the colorized traceback is presented and whether
the traceback is logged to a file for later analysis.
\begin{funcdesc}
{
enable
}{
\optional
{
display
\optional
{
, logdir
\optional
{
,
context
}}}}
This function causes the
\module
{
cgitb
}
module to take over the
interpreters default handling for exceptions that propogate out of
the top level of a script. The causes
\module
{
cgitb
}
to set the
value of
\code
{
\refmodule
{
sys
}
.excepthook
}
.
The optional argument
\var
{
display
}
defaults to true and can be set
to false to suppress sending the traceback to the browser.
\var
{
logdir
}
, if given, should be a directory to cause tracebacks to
be written to files there; by default tracebacks will not be written
to files.
\var
{
context
}
is the number of lines of context around
the offending line in a traceback display; this defaults to
\code
{
5
}
.
\end{funcdesc}
\begin{funcdesc}
{
handler
}{
\optional
{
info
}}
This function handles an exception using the default settings. This
can be used when you've caught an exception and want to report it
using
\module
{
cgitb
}
, but need to continue processing.
\end{funcdesc}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment