How Can I Run Zope in Debug Mode?
Putting your Zope into Debug Mode and being able to watch all log messages on your console/terminal is easy. Read along to find out.
Turn Debug Mode On
First, you need to turn debug mode on.
vi /usr/local/zope/instance1/etc/zope.conf
...and change 'debug-mode off' to 'on'. You don't have to use vi; vim, emacs, pico, nano, ee or any other text editor will do.
Stop Zope
Now you can stop Zope. Become root first ('sudo su').
zopectl stop
Start Zope Manually
Now you can start Zope. This will not detach from your console and will show all log messages right there on your console. You will need to become the user zope first ('su zope'), then run this command:
~/instance1/bin/runzope
Exit Zope
To exit Zope, type Control-C. This will stop your zope.
Start Zope Normally Again
You can now turn debug mode off and type 'zopectl start' (as root) to start your zope normally again.