Sunday 12:30 p.m.–1:20 p.m.

Introduction to Debugging with Python

Craig Maloney

Audience level:
Novice

Description

Ever since a moth was discovered in the Mark II computer we've dealt with bugs in software. This talk will show different methods for determining what the code is doing. We'll start with the lowly print statement and introduce advanced forms of logging. We'll also cover several Python debuggers and talk about best practices for debugging and preventing bugs in Python code.

Abstract

We'll cover the following topics:

  • Debugging using print()
  • Logging and best practices for logging
  • Debugging using Pdb
  • Breakpoints
  • Conditional Breakpoints
  • Printing Variables
  • commands / backtrace
  • Pdb++