Also in case you really want to get into the python debugger from
a script, try this:

Install zdb,

Add the following line to the script:
from zdb import set_trace; set_trace()

Stop zope.
Restart zope in the foreground.
Either of these commands will do that:

./bin/zopectl fg



Now when the script runs, you'll get a pdb prompt in
the terminal where you ran zope.

It'll take a little practice to learn to find your way around.
At first you'll likely spend some time blindly stepping through
the deep guts of Zope...


Paul Winkler
Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to