Using pdb to Inspect Python Objects

Опубликовано: 14 June 2026
на канале: Pybites
1,707
55

In this short training we will show you how to use the Python debugger (pdb) to inspect an output from the Github API (as called by the requests module).

The main lesson here is that a debugger is not only for solving bugs, you can and should use it anytime you want to inspect objects.

It gives you the unique opportunity to look at code in a paused state (a bit like calling a time-out in a basketball game).

In this case it prevents you from having to call the Github API over and over again to get it right which saves you a lot of time.

Start using this technique in your work and become a faster developer.