Showing posts with label pydev extensions zope remote debugging. Show all posts
Showing posts with label pydev extensions zope remote debugging. Show all posts

Thursday, May 03, 2007

Debugging Zope in Pydev Extensions

I had already posted a message about the __init__.py files that you need to add to the zope Products folder (see previous post), and I've just gotten feedback from Mario Orlandi with some additional things that need to be configured for debugging zope:


1) Add to \__init__.py the following statements:

# allows pydevd.set_trace() inside Script (Python) objects
from AccessControl import ModuleSecurityInfo
ModuleSecurityInfo('pydevd').declarePublic('settrace')

2) Install this Zope product:
http://www.zope.org/Members/regebro/ScriptDebugging

3) Take a look at the following post:
http://freeplone2.openia.com/frpiano/how-to/how-to-setup-remote-debug-on-zope-with-pydev/, which may also work as a good reference (and don't forget to start the zope and the pydev daemon from eclipse).