Saturday 3 May 2014

Debugging Python with pdb at the command line

I've just put up a short video (7 mins) describing one way of debugging in Python using the pdb module (here's the docs):


In this video I show how to step through code, view values of variables and also insert various types of break points.

All this is done interactively at the command line but you can also use the pdb library to include debugging commands in your Python script itself.

1 comment:

  1. This video provides a concise and clear demonstration of using the pdb module for debugging in Python. Mastering skills like stepping through code, inspecting variable values, and inserting breakpoints are crucial for every Python developer, and the command-line interaction makes the debugging process intuitive and efficient. Thanks for sharing this valuable resource!

    ReplyDelete