Debugging tips and tricks (a real-life example)

Follow a programmer through the process of debugging a real-life bug. Watch and learn how to use a few of the tips and tricks, in the context of a full solution.

  1. Introduction The components and setup for server-side debugging.
  2. The Problem An error occurred while attempting to pack the ZODB.
  3. Foreground Execution Using "instance fg" for more error details.
  4. Watching Zope Zope reacts to this bug via a web request.
  5. Diving into Plone’s guts Locating the affected code.
  6. Grep is your friend How to find source code.
  7. Using Pdb Finding the bug via the Pdb prompt.
  8. Read the Source, Luke Read the source code to find the bug.
  9. Oh, server, where art thou? Using a pdb.set_trace() with a ZEO server.
  10. Zero-in on the Code Finally, the troublesome line.
  11. Simplify the Problem Modify buildout to run Zope without ZEO.
  12. Nailing down the bug Finally, we find the root cause.
  13. The Right Fix Determining the correct course of action to solve this problem.
  14. References & Credits Where to go from here...and whom to blame.

All content on one page (useful for printing, presentation mode etc.)