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
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to