[Zope-dev] Zope Debugging Tips Solicited
James W. Howe
jwh@allencreek.com
Wed, 23 Feb 2000 17:30:16 -0500
I'm trying to debug some Python extensions that I've made to Zope. I'm
looking for tips on how to efficiently debug this code. I've searched the
Zope.org site for information, but haven't found too much useful. In some
cases I'm able to get by with writing using Zlogger, but there are times
when using a debugger would be helpful. I've managed to use pdb, but the
process is somewhat painful. I modify my code to import pdb and I put a
pdb.set_trace() where I want to debug. I then start Zope and use my
browser to get to a place where my code will run. When run, the debugger
stops. I step through and then I get to a point where I just want to
resume. I try using 'continue' but I find that I have to do that several
times before the debug prompt goes away. I then find that I drop into the
debugger at places other than where I've done a set_trace.
My basic question is this, what sort of debugging techniques do you find
useful? Is there something I should be doing that I'm not? I haven't
really explored the monitor feature because I don't really understand what
I can do with it. Any debugging tips that anyone might have would be
appreciated.
Thanks.
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103