[Zope-dev] Better diagnostics during product load?

Jonothan Farr jfarr@real.com
Mon, 21 Feb 2000 19:13:20 -0800


> > > Thanks for your suggestion. I tried that, but it didn't help -- same
> result.

You have to run zope in debug mode or you won't see anything that gets written
to stdout or stderr.

> > > If there's a syntax error in the module, Python won't even execute the
> > > "try...except", will it?

You're right. It won't catch SyntaxError exceptions. Those will be caught in
the try block containing the import statement.

It's also possible to debug your product from the interpreter, which would
show you those errors.

From your $ZOPE_HOME/lib/python directory:

import Zope
import Products.<product name> <= should get a SyntaxError exception here if
you're going to get one.

-jfarr

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi! I'm a signature virus.
Copy me into your .sig to join the fun!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~