[Checkins] SVN: Sandbox/philikon/zopeproject/trunk/README.txt Document the new debug script

Philipp von Weitershausen philikon at philikon.de
Sat Sep 15 05:44:20 EDT 2007


Log message for revision 79659:
  Document the new debug script
  

Changed:
  U   Sandbox/philikon/zopeproject/trunk/README.txt

-=-
Modified: Sandbox/philikon/zopeproject/trunk/README.txt
===================================================================
--- Sandbox/philikon/zopeproject/trunk/README.txt	2007-09-15 09:31:34 UTC (rev 79658)
+++ Sandbox/philikon/zopeproject/trunk/README.txt	2007-09-15 09:44:20 UTC (rev 79659)
@@ -219,7 +219,27 @@
 
   $ bin/buildout
 
+Debugging
+=========
 
+Occasionally, it is useful to be able to interactively debug the state
+of the application, such as walking the object hierarchy in the ZODB
+or looking up components manually.  This can be done with the
+interactive debug prompt, which is available under
+``bin/debug-myzopeapp``::
+
+  $ bin/debug-myzopeapp
+  Welcome to the interactive debug prompt.
+  The 'root' variable contains the ZODB root folder.
+  The 'app' variable contains the Debugger, 'app.publish(path)' simulates a request.
+  >>> 
+
+You can now get a folder listing of the root folder, for example::
+
+  >>> list(root.keys())
+  [u'folder', u'file']
+
+
 Changes
 =======
 



More information about the Checkins mailing list