I don't think PyDev will help you with Zope debugging.
I develop product code for a Zope-based application and Eclipse/PyDev works great for editing, integrating with version control, managing other project artifacts, searching zope code, etc.
But for actually debugging Zope the only good solution I know of at the moment is WingIDE (http://http://wingide.com/). Big pain, because it's a separate setup and a separate dev tool license, but when ya really need a debugger it's quite good.
Was there anything in particular you were looking for tips on?
~ Deb
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got a few questions. When creating a project, do you make a reference to Zope root or just the product you develop? What about instances, they can be seen as separate projects.
About debugging Zope, some plug-ins for Eclipse (WebSphere, WebLogic related) enable you to start the server and then you can debug your web application. Do you think something similar is possible for a Zope server?
Bert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>> creating projects to reference entire Zope root vs. just your own product
Both, actually. Strongly recommend that you create specific project(s) for your own code. This is what you work on and edit. [and manage under version control, right?!] Create separate projects for the code libraries that you reference.
Note that this advice applies to any development project IMO, not just Zope or even python dev - manage your own development files separately from the libraries that you use.
If you run a local Zope server (e.g., test system vs. production system elsewhere), you can choose whether to map your development project directly into the Products dir on your Zope's path or store the project under your workspace dir with some scheme for deploying updates into your server (command scripts, ant, whatever). Developers on my team use both of these styles.
Create separate project(s) for mapping in view onto python/zope/product libraries that you reference. Make use of Eclipse's facilities for mapping an project to an existing directory or create a project that you store in your own workspace to which you add linked folders that reference the server library dirs (New Folder, Advanced options, check "Link to folder in the file system"). I prefer the latter - keeps the eclipse .project file in my own workspace and also gives me a place to stash misc. files that I want for dev use but don't want stored in my zope or python installation directories.
Use the Working Set feature to define subsets of the overall code base in python or zope libraries for constraining searches - very handy.
>> is an eclipse plugin possible to support starting zope server and debugging
ah, sure... it's a Simple Matter of Programming [g]
~ Deb
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Those tips will certainly help with the next Zope project.
I really would like a plugin for debugging Zope products. I will have a look at plugin development for Eclipse and at the WebLogic Server plugin in specific. Then I will try some programming.
Regards
Bert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Does anybody have experience with using pydev to debug Zope applications/products? Any tips?
Thanks
I don't think PyDev will help you with Zope debugging.
I develop product code for a Zope-based application and Eclipse/PyDev works great for editing, integrating with version control, managing other project artifacts, searching zope code, etc.
But for actually debugging Zope the only good solution I know of at the moment is WingIDE (http://http://wingide.com/). Big pain, because it's a separate setup and a separate dev tool license, but when ya really need a debugger it's quite good.
Was there anything in particular you were looking for tips on?
~ Deb
Thank you for your response.
I got a few questions. When creating a project, do you make a reference to Zope root or just the product you develop? What about instances, they can be seen as separate projects.
About debugging Zope, some plug-ins for Eclipse (WebSphere, WebLogic related) enable you to start the server and then you can debug your web application. Do you think something similar is possible for a Zope server?
Bert
>> creating projects to reference entire Zope root vs. just your own product
Both, actually. Strongly recommend that you create specific project(s) for your own code. This is what you work on and edit. [and manage under version control, right?!] Create separate projects for the code libraries that you reference.
Note that this advice applies to any development project IMO, not just Zope or even python dev - manage your own development files separately from the libraries that you use.
If you run a local Zope server (e.g., test system vs. production system elsewhere), you can choose whether to map your development project directly into the Products dir on your Zope's path or store the project under your workspace dir with some scheme for deploying updates into your server (command scripts, ant, whatever). Developers on my team use both of these styles.
Create separate project(s) for mapping in view onto python/zope/product libraries that you reference. Make use of Eclipse's facilities for mapping an project to an existing directory or create a project that you store in your own workspace to which you add linked folders that reference the server library dirs (New Folder, Advanced options, check "Link to folder in the file system"). I prefer the latter - keeps the eclipse .project file in my own workspace and also gives me a place to stash misc. files that I want for dev use but don't want stored in my zope or python installation directories.
Use the Working Set feature to define subsets of the overall code base in python or zope libraries for constraining searches - very handy.
>> is an eclipse plugin possible to support starting zope server and debugging
ah, sure... it's a Simple Matter of Programming [g]
~ Deb
Those tips will certainly help with the next Zope project.
I really would like a plugin for debugging Zope products. I will have a look at plugin development for Eclipse and at the WebLogic Server plugin in specific. Then I will try some programming.
Regards
Bert
Keep in touch if you pursue this, some Zope support for Eclipse would be a fine thing.
~ Deb