Python pdb and Breakpoint Cheat Sheet/Automatically display an expression

Re-evaluate an expression each time execution stops.

Section: Inspection and Frames

Automatically display an expression

text
text
display user.balance

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Inspection and Frames
Stop auto-displaying an expression
Remove one display entry.
OpenIn sheettextsame section
Show function arguments
Display current frame arguments.
OpenIn sheettextsame section
Inspect locals
Print local variables dictionary.
OpenIn sheettextsame section
Inspect globals
Print global variables dictionary.
OpenIn sheettextsame section
List full function source
Show the entire current function body.
OpenIn sheettextsame section
Start pdb from CLI
Debug a script from the command line.