Python pudb: Difference between revisions

From wikinotes
(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...")
 
(No difference)

Latest revision as of 22:13, 6 May 2018

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'