[Zope] Re: Zope debugging

Simon Michael simon@joyful.com
Fri, 20 Dec 2002 10:30:18 -0800


Dani=EBl Hooymans <d.hooymans@edufocus.nl> writes:
> Any other suggestions for easy debugging zope apps? Setting breakpoints
> and stepping through a zope app?

Yes - after reading the zope developer's guide chapter 7 (the best intro
to the subject), set up ZEO and configure things so that you can type
"python" and have the live server available at your prompt (import Zope,
app =3D Zope.app()).=20

Then do this within an emacs shell buffer, making sure you have
pdbtrack.el installed. import pdb, pdb.run('app.object.somemethod'), and
you'll be stepping through code on the server with source.  If the server
is remote, you can ssh there to run python, making sure you have a local
copy of the zope source such that the python file paths are the same.

-Simon