home contents changes options help subscribe edit (external edit)

Do whatever is necessary on your platform to install an up-to-date emacs. Now in emacs, do:

 M-x shell
 zopectl debug

This should start up a zope debug prompt. If you're not running ZEO (Zope Enterprise Objects) you'll need to stop your zope server first. Here you can explore your ZODB (Zope Object Database), invoke methods or perhaps run the python debugger . See Debugging for more ideas.

With pdbtrack.el installed (included in python-mode these days), emacs should show you the source code when you invoke the python debugger.


comments:

pdbtrack functionality now in python-mode -- Wed, 14 Apr 2004 08:10:12 -0700 reply
Just a note that pdbtrack is now a part of recent versions of python-mode.el. If python-mode is loaded (either because you've loaded a python code file and have the auto-mode going, or you can explicitly load python-mode), then pdb tracking will happen whenever you interact with pdb in an emacs process buffer. Eg, i usually start zope instances that i'm debugging in an emacs shell buffer, and then any pdb.set_trace() i have in zope code will trigger pdb tracking from my shell buffer - wouldn't do without it.

Also, i've added a nice feature to the pdbtrack code in python-mode (i'm ken, who created the thing) for stepping through through-the-web python script code. You have to put a copy of the python-script code in a buffer named for the function and in python-mode. Then, when stepping through zope code, pdbtrack will look for such a buffer and track through it if found. This may sound a little complicated, but (1) i tend to copy purely ttw code into an emacs buffer for editing, anyway, and (2) i just works, you don't have to do anything, for filesystem-based python scripts, like skin scripts.

very good to know -- Wed, 14 Apr 2004 12:23:24 -0700 reply
Thanks! I'll try this next time I'm DebuggingPythonScripts

no luck yet -- Tue, 20 Apr 2004 11:47:25 -0700 reply
README.Debian says:

 Barry Warsaw's python-mode for Emacs is included in the upstream Python
 distribution. In Debian, we provide this mode in this separate package,
 taken from the sourceforge project at http://sf.net/projects/python-mode. 

I have the latter.. is your feature in that one ?

no luck yet --simon, Tue, 20 Apr 2004 16:03:02 -0700 reply
There is indeed some code for this in latest debian python-mode, please see DebuggingPythonScripts for problem notes.



subject:
  ( 23 subscribers )