I presented this at Openfest 2023 — a practical look at Python debugging, from print statements and logging to pdb, breakpoints, and IDE debuggers, with code examples in the companion repository.

Slides:

The code examples are available on GitHub.