Enable Debugging
Recommended: set debug-mode=on in {instancehome}/etc/zope.conf
This way you won't have to restart zope everytime you make some changes to it.
This works for most scripts and files except for i18n translation po files, which will still require a restart for changes to be effective.
To debug cpy and cpt scripts, where print statements do not work, call:
context.plone_log("print whatever you wish to debug")
to print something to the event log.
Also read about how to debug insufficient privileges

