Chapter 9. When You Don't Even Know What to Log: Using Debuggers
For many problems encountered during development, a debugger is the most efficient tool to use to help figure out what is going on. A debugger lets you see exactly what the code is doing, step by step if necessary. It lets you see, and change, the values of variables along the way. With a debugger, you can even test out potential code fixes before making changes to the source code.
This chapter focuses on using debuggers to help debug during development of Django applications. Specifically, in this chapter we will:
Continue development of the survey application, seeing how the Python debugger, pdb, can be used to help figure out any problems that arise
Learn how to use the debugger to verify correct operation of code that is subject to multi-process race conditions
Briefly discuss the use of graphical debuggers for debugging Django applications