
pdb is a built-in Python debugger.
Add this ONE line anywhere:
import pdb; pdb.set_trace()
Execution pauses and you can:
- Inspect variables (p variable)
- Step through code (n, s)
- Continue or quit (c, q)
One tip a day. Follow for more.
#Python #DataScience 🐍

English
















