Confirmed users
213
edits
m (Minor typos corrections) |
m (Added snippet about non-working wait.) |
||
| Line 154: | Line 154: | ||
</source> | </source> | ||
[https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/ Here] is the informative tutorial regarding pdb. | [https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/ Here] is the informative tutorial regarding pdb. | ||
== Debug a non-working wait == | |||
When a wait raises an exception while you actually see something happening on the device, you can use a snippet like: | |||
<source lang="python"> | |||
for i in range(0, 20) | |||
print i, expected_end_value, element_that_is_moving.rect["y"] | |||
# Bugged Wait() below | |||
<source> | |||