Revision history [back]
The variable element does not exist until you start to run the iterator and never exists in the context you stopped at in the above screenshot (this is a result of how they are implemented in Python). If you step over the line you are on in the above screenshot, it should arrive at the breakpoint again and from there you can step through the loop using Step Into. Stepping is a bit confusing in this case in that the first time you arrive there the variable also hasn't been defined yet because in Python's implementation of iters you are just before the start of the loop, but element will be defined if you keep stepping. Use Step Into to stay on the line where you have the breakpoint, rather than completing the iteration in one step with Step Over.