Debug ranges wrong in for loop with non-int32 counters #84
Labels
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Ready
This was originally opened on CodePlex by latkin
If I define a simple for loop with a signed-integer counter, debug behavior is as expected:
But if I change the counter to something besides a normal signed int (e.g. an unsigned int, shown below), line #2 takes 2 debug steps to pass through:
vs
->
--> 
From peeking at the IL, looks like first example is compiled as normal ‘for’ loop as in C#, but second example is implemented with an IEnumerable and various plumbing to work with it.
The text was updated successfully, but these errors were encountered: