[Zope3-checkins] CVS: Zope3/doc - DEBUG.txt:1.2

Jim Fulton jim@zope.com
Tue, 31 Dec 2002 15:50:27 -0500


Update of /cvs-repository/Zope3/doc
In directory cvs.zope.org:/tmp/cvs-serv8809

Modified Files:
	DEBUG.txt 
Log Message:
Checking in so kapil can finish update.


=== Zope3/doc/DEBUG.txt 1.1 => 1.2 ===
--- Zope3/doc/DEBUG.txt:1.1	Fri Dec  6 07:13:34 2002
+++ Zope3/doc/DEBUG.txt	Tue Dec 31 15:50:27 2002
@@ -9,19 +9,28 @@
   Setting up Environment
 
     Setup your PYTHONPATH environment variable to include
-    lib/python.. ie (unix bash syntax)::
+    src. ie (unix bash syntax)::
 
       cd Zope3
-      export PYTHONPATH=$PWD/lib/python:$PYTHONPATH
+      export PYTHONPATH=$PWD/src:$PYTHONPATH
     
     To start interacting with the debugger you need to initialize the
     zope application::
 
       python2.2
-      >> from Zope.App import Application
+      >> from zope.app import Application
       >> app = Application('path/to/zodb/', 'path/to/site.zcml')
             
   Using the Debugger
+
+    There are several method you can call on the application object:
+
+      - the 'publish' method executes a request as the publisher would
+        and prints the response headers and body.
+
+      - run executes a request with the publisher's normal error
+        handling disabled and without outputing anything.  This
+        is useful for use with Python's post-mortem. debugger
 
     Once you have the application object you can call its debug method
     to debug a zope object publication.