The pdb
module is the standard Python debugger. It is based on the bdb
debugger
framework.
You can run the debugger from the command line (type
n
[or next
] to go to the next
line and help
to get a list of available commands):
$ pdb.py hello.py > hello.py(0)?() (Pdb) n > hello.py() (Pdb) n hello again, and welcome to the show --Return-- > hello.py(1)?()->None (Pdb)
Example 11-2 shows how to start the debugger from inside a program.
3.15.231.194