pdb
Python Software Foundation
π‘ Pick it when you need breakpoints, stepping, and interactive inspection instead of quick debug prints.
pdb is Python's built-in interactive source-code debugger. It is designed for developers who need breakpoints, stack inspection, stepping, and runtime expression evaluation.
Pros
- Provides execution control and stack inspection that icecream lacks
- Included with Python without an additional dependency
- Supports breakpoints, stepping, and interactive evaluation
Cons
- Slower to use for quick value inspection than icecream
- Less readable for leaving temporary diagnostics in code
- Command-line workflow is less convenient for beginners