[Grok-dev] Howto set up post-mortem debugging in Grok

Sebastian Ware sebastian at urbantalk.se
Fri Aug 17 07:35:50 EDT 2007

This is so easy, it is very difficult to find any simple  
documentation... thus easy enough for me to contribute :) This  
section should be part of a "Grok Debugging Howto"...

*** Post-mortem Debugging ***

Post-mortem debugging allows you to explore the state of your  
application once it has thrown an exception. In order to enable post- 
mortem debugging:

1 In parts/instance/etc/zope.conf search for  
"PostmortemDebuggingHTTP" uncomment the following lines:

      type PostmortemDebuggingHTTP
      address 9000

2 Start Zope in a terminal


3 Use the application up to the point of the exception

4 Trigger the post-mortem debugger by opening the following page in  
your browser

   -given server on localhost and the port in (1) set to 9000

5 In the terminal window where you started Zope you will now see the  
python debugger prompt


6 Check out the available commands in Pdb


Mvh Sebastian

More information about the Grok-dev mailing list