Short cmd | Full cmd | Description |
---|---|---|
a | args | Print all arguments with its value in current function |
b | break | Add breapoint at specific line or function |
c | continue | Continue execution of program until next breakpoint |
cl | clear | Clear all the soft breakpoints |
l | list | Print next 11 line of code aroung the current line |
l . | list . | Go back to the current debug point |
ll | longlist | List all the source code for current function or frame |
n | next | Continue execution until the next line in current function is reached. Useful to skip loop debugging. |
p | Print specific expression | |
pp | Pretty print specific expression | |
s | step | Execute current line and stop at next possible occation. |
u | until | Execute current line and stop at the next line in the same file. Useful to skip loop or function call. |
Last active
September 30, 2020 10:19
-
-
Save priteshgohil/d6ceaed11843a673d2cb5de6fda61137 to your computer and use it in GitHub Desktop.
Python Debugger pdb cheatsheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment