-----Original Message----- From: Josh Zeidner [mailto:jmz_phylogenic@hotmail.com] Sent: Tuesday, June 29, 1999 11:24 AM To: zope-dev@zope.org Subject: [Zope-dev] Debugging Products
Hello Zope Zealots,
I am currently developing a simple product both for educational and practical reasons. However, I doesn't work. What steps do I take to debug a broken Zope product?
First, if the Product says it's broken, you can look in the Control Panel, click on the product, and see the traceback that it generated. Once you can get the Product to not be 'broken' to Zope (but it's still buggy) you can debug it using the Zope debugger, which is based on the python debugger. How you use it though, depends on what version of Zope your running. I'll assume you are using the recent stable release, 1.10.3. Shut down Zope, cd to your lib/python directory, run python, and then:
import Main, ZPublisher
Now you want to call Zope just like a web request would. the syntax for that is:
ZPublisher.Main('/path/to/object', u='userid:password', d=1)
The 'd=1' tells Zope to enter the python debugger. Without it, the above call would simulate a request and return the results to you on the screen. To learn how to use the Python debugger, refer to www.python.org. -Michel
Thank you-
Josh Zeidner Phylogenic Inc.
_______________________________________________________________ Get Free Email and Do More On The Web. Visit http://www.msn.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://www.zope.org/mailman/listinfo/zope-dev
(For non-developer, user-level issues, use the companion list, zope@zope.org, http://www.zope.org/mailman/listinfo/zope )