Zope debugging (was: Considerations using Zope)
Hi, To whom it applies: Thank you for replying to my previous post. Next item i'm digging into is Zope debugging. I've checked the documentation about debugging. Also i'm currently browsing through the http://zwiki.org/ZopeDebugging page. Any other suggestions for easy debugging zope apps? Setting breakpoints and stepping through a zope app? Greets, Daniel Hooymans
Daniël 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 = Zope.app()). 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
participants (2)
-
Daniël Hooymans -
Simon Michael