[Zope] Help Debugging External Methods

Dieter Maurer dieter@handshake.de
Sat, 14 Oct 2000 22:50:33 +0200 (CEST)


Robert_J_Roberts@rl.gov writes:
 > What are my options for debugging External Methods in Zope running on
 > Windows NT?
I work under Unix. Maybe my technics are not applicable for NT.

Usually, I use "print" statements for debugging purposes.
Under Unix, I can redirect "stdout" to a file and
view the output (be sure to flush stdout after "print").

You can also use "zLog" (may be spelled differently!).
This writes log entries into the log file.
The advantages: will work under Windows, contains a timestamp.

If the external method does not need too many Zope infrastructure,
I test it outside of Zope and integrate only, when it works
properly.

When everything else does not work, I use "Test.py" and
the Python debugger "pdb".


Dieter