pdb: Python debugger
pdb is an in-built Python debugger that supports breakpoints, stepping through the source line by line, inspection of stack frames, source code listing, etc.
There are two ways to use the debugger. Within the code (or from the interpreter):
Alternatively pdb can also be invoked as a script to profile another script:
Running pdb
will open the prompt which supports various commands such as
where
, down
, up
, up
, break
, step
, next
, jump
, list
.