[Zope] Debug flags

Dieter Maurer dieter@handshake.de
Sat, 26 Jan 2002 20:21:49 +0100


Gabriel Genellina writes:
 > How could I know if Zope was started using the -D flag?
You can look at the environment: "z2.py" executes
"os.environ['Z_DEBUG_MODE']='1'" when it gets the "-D" option.

"ZPublisher.Publish" set "response.debug_mode", when Zope runs in
debug mode.


Dieter