Common pdb Arguments
Table 1 pdb arguments
| Command | Shortcut | Description |
|---|---|---|
| break | b | Set a breakpoint. |
| continue | c | Continue execution until the next breakpoint or call point. |
| list | l | View the code segment around the current line. |
| step | s | Step into a function. |
| return | r | Execute until returning from the current function. |
| quit | q | Abort and exit. |
| next | n | Execute the next line. |
| p | Print the value of a variable. | |
| help | h | Help. |
| args | a | View the passed arguments. |
| Enter key (keyboard) | None | Repeat the last command. |
| break lineno | b lineno | Set a breakpoint at the specified line. |
| break file:lineno | b file:lineno | Set a breakpoint at the specified line in a file. |
| clear num | None | Delete the specified breakpoint. |
| bt | None | View the function call stack frames. |