Python pudb

From wikinotes
Revision as of 22:13, 6 May 2018 by Will (talk | contribs) (Created page with "pudb is a gui debugger. '''Watch a Variable ''' watching a variable in pudb enters it into the GUI on the top right. Breakpoints are not added, it simply displays whether th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

pudb is a gui debugger.


Watch a Variable watching a variable in pudb enters it into the GUI on the top right. Breakpoints are not added, it simply displays whether the expression is true or false as you step through the code.

### Code
a = 0
a = 1
a = 2
a = 3
a = 4
 
 
### pudb watch expression
a > 2
 
 
### Action
# a > 2 will display false until the condition is met,
# at which point it will say 'True'