[Checkins] SVN: grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/README.txt Update docs.

Ulrich Fouquet cvs-admin at zope.org
Fri Apr 27 16:15:38 UTC 2012


Log message for revision 125351:
  Update docs.
  

Changed:
  U   grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/README.txt

-=-
Modified: grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/README.txt
===================================================================
--- grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/README.txt	2012-04-27 16:15:28 UTC (rev 125350)
+++ grokcore.startup/branches/ipython-debug-shell/src/grokcore/startup/README.txt	2012-04-27 16:15:35 UTC (rev 125351)
@@ -260,11 +260,34 @@
     >>> import shutil
     >>> shutil.rmtree(temp_dir)
 
-``interactive_debug_prompt(zope_conf_path)``
+``get_debugger(zope_conf_path)``
 --------------------------------------------
 
   Get an interactive console with a debugging shell started.
 
+  `grokcore.startup` provides two different debuggers currently: a
+  plain one based on `zope.app.debug` and a more powerful `IPython`_
+  debugger. The IPython debugger is automatically enabled if you have
+  IPython available in the environment.
+
+  You can explicitly enable the IPython_ debugger by stating::
+
+    grokcore.startup [debug]
+
+  in the install requirements of your `setup.py`, probably adding only
+  ``[debug]`` to an already existing entry for
+  `grokcore.startup`. Don't forget to rerun `buildout` afterwards.
+
+  You can explicitly require one or the other debugger by calling::
+
+    grokcore.startup.startup.interactive_debug_prompt(zope_conf)
+
+  or::
+
+    grokcore.startup.debug.interactive_debug_prompt(zope_conf)
+
+  in the ``[interactive_debugger]`` section of your ``buildout.cfg``.
+
     >>> import zope.app.appsetup.appsetup
     >>> # Ugh - allow a reconfiguration of an app.
     >>> zope.app.appsetup.appsetup._configured = False
@@ -313,10 +336,10 @@
     ... pprint(__file__)
     ... pprint(__name__)""")
     >>>
-    >>> sys.argv = ['interactive_debug_prompt', script]
-    >>> from grokcore.startup import interactive_debug_prompt
+    >>> sys.argv = ['get_debugger', script]
+    >>> from grokcore.startup import get_debugger
     >>> try:
-    ...     interactive_debug_prompt(zope_conf=zopeconf)
+    ...     get_debugger(zope_conf=zopeconf)
     ... except SystemExit:
     ...     # Catch the exit from the interactive prompt as it would
     ...     # exit this test as well.
@@ -347,3 +370,4 @@
 .. _WSGI: http://www.wsgi.org/wsgi/
 .. _WSGIPublisherApplication: http://apidoc.zope.org/++apidoc++/Code/zope/app/wsgi/WSGIPublisherApplication/index.html
 .. _zc.buildout: http://pypi.python.org/pypi/zc.buildout
+.. _ipython: http://ipython.org/



More information about the checkins mailing list