Getting Started
|
Start pdb inside a python script |
|
Start pdb from the command line |
Stepping
|
Step over |
|
Step into |
|
Continue until the current function returns |
|
Continue until the next breakpoint is encountered |
|
Continue until a specific line is encountered. Or continue until a larger line number is reached if no line_number is set |
|
Up one level in the stack trace |
|
Down one level in the stack trace |
|
Show help |
|
Quit debugger |
Breakpoints
|
Show all breakpoints |
|
Set a breakpoint at a specific line |
|
Set a breakpoint at a specific line, if condition is met |
|
Set a breakpoint in a file at a specific line |
|
Set a breakpoint at the first line of a function |
|
Disable breakpoint number |
|
Enable breakpoint number |
|
Remove breakpoint number |
Printing
|
Print the value of expr |
|
Print current position and stack trace |
|
Print 11 lines of code around the current line |
|
Print the arguments of the current function |