November 2022
Beginner to intermediate
752 pages
19h 19m
English
The Python DeBugger (pdb) tool has quite a few commands you can enter at the (Pdb) prompt to control and monitor the execution of the code. In this appendix, I outline the most important pdb commands in an easy-to-use table.
If you need even more information, you will find all pdb commands exhaustively documented at https://docs.python.org/3/library/pdb.html.
| Command(s) | Purpose |
h command
help command |
Shows help for a command. If a command is omitted, this lists all available commands. |
q
quit |
Quits the current pdb session. |
| Moving around | |
w
where |
Prints the stack trace for the current position. |
u count
up count |
Moves the focus higher up the current stack trace, by count levels, or one level by default. ... |
Read now
Unlock full access