A-hunting We Will Go: Debugging pytest with Django - Cris Ewing (North Bay Python 2019) @NorthBayPython
A-hunting We Will Go: Debugging pytest with Django - Cris Ewing (North Bay Python 2019)  @NorthBayPython
Uploaded November 2019 | Updated September 2026, 2 days ago
Cris Ewing

2019.northbaypython.org/schedule/presentation/7

Debugging code is a skill we all must learn, but one that is rarely taught particularly well. We speak about “reading the traceback” as if that alone is sufficient to lead us to the solution to all our problems. But what happens when it isn’t enough? When the traceback is the symptom of a problem that happened elsewhere, or elsewhen? How do you approach debugging when the leads are slim?

This talk presents the tools of debugging couched in a very specific tale of a particular bug hunt. The specific bug is a good one because it presents a number of the classic tough problems in debugging. It starts with an intermittent failure. It has a traceback that is completely remote from the actual cause of the problem. It involves the interaction of three separate systems: a web framework, a test framework, and a database. And in the end, the cause is so small, and the solution so simple, that it serves to remind us all to be humble in the face of the complexity we deal in daily.

During this talk, you'll learn about ways to use printing and logging as well as pdb. You'll see how core Python tools like dbapi2 and the inspect module can help to solve common problems. You'll learn how to spot new avenues for exploration, and how to figure out when you're in a blind alley.

The talk is entertaining for folks of any level, but it’s probably of most use to beginner and intermediate programmers.

So you’ve got a bug and you can’t see where to begin? Well, let me tell you, I’ve been there. Have a seat and I'll tell you a story of a bug that cost me three days and ended in three lines of code. I promise you’ll laugh, you’ll cry, and when we’re finished, you might see a path to start your own hunt.

A Python conference north of the Golden Gate


North Bay Python is a single-track conference with a carefully curated set of talks representing the diverse Python community and their different areas of interest.

If a topic is less to your interest, or you've met some people you really want to sit down and chat with, we'll have plenty of areas away from the main theatre to catch up and chat.

Our goal is to keep prices as low as possible. That means we won't be catering lunch. Instead, you can look forward to extra-long lunch breaks you can use to explore all of the great food options around the venue.

Produced by NDV: youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1

Sun Nov 3 16:30:00 2019 at Mystic Theatre
A-hunting We Will Go: Debugging pytest with Django - Cris Ewing (North Bay Python 2019)Conference Close -  (North Bay Python 2019)No ISPs, No Masters: Modern Mesh Networking with Python - Philip James (Nbpy2025)Ship your Python code faster with PEX - Shalabh Chaturvedi (North Bay Python 2023)2FA, WTFTo **** With Passwords! - Jacob Kaplan-Moss (North Bay Python 2019)Key Security Considerations for Publishing Your First Mobile App with PythonKeynote by Brandon RhodesState of Exception(s) - Benno Rice - 2026Nightmare on LLM Street: The Perils and Paradoxes of Knowing Your FoeBumbling into BeeWare: From typo-fix to core developer - Kattni - 2026Have you tried... - Paloma Fautley (North Bay Python 2023)
North Bay Python |

"A-hunting We Will Go: Debugging pytest with Django" - Cris Ewing (North Bay Python 2019)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER