7 Sep
2006
7 Sep
'06
8:06 p.m.
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