[Zope] Need help tracing my application errors.

Paul Winkler pw_lists at slinkp.com
Thu Sep 7 16:06:24 EDT 2006


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

Install zdb, http://www.simplistix.co.uk/software/zope/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

 or

./bin/runzope


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
http://www.slinkp.com


More information about the Zope mailing list