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.
- Introduction The components and setup for server-side debugging.
- The Problem An error occurred while attempting to pack the ZODB.
- Foreground Execution Using "instance fg" for more error details.
- Watching Zope Zope reacts to this bug via a web request.
- Diving into Plone’s guts Locating the affected code.
- Grep is your friend How to find source code.
- Using Pdb Finding the bug via the Pdb prompt.
- Read the Source, Luke Read the source code to find the bug.
- Oh, server, where art thou? Using a pdb.set_trace() with a ZEO server.
- Zero-in on the Code Finally, the troublesome line.
- Simplify the Problem Modify buildout to run Zope without ZEO.
- Nailing down the bug Finally, we find the root cause.
- The Right Fix Determining the correct course of action to solve this problem.
- References & Credits Where to go from here...and whom to blame.
All content on one page (useful for printing, presentation mode etc.)