VS 2010 Debugger breakpoint skips first iteration of for-loop - by DenisStack

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 713927 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 12/14/2011 4:04:11 AM
Access Restriction Public


If you set a breakpoint on the same line as the "for" statement, then run - to - breakpoint, debugger doesn't break until the loop has been iterated once. 
This bug also exists in VS 2008.
Sign in to post a comment.
Posted by DenisStack on 12/20/2011 at 3:01 AM
Thanks for the fix!
Posted by Microsoft on 12/19/2011 at 9:50 AM
We have found the root cause and fixed the problem. The fix will be included in our next major Visual Studio release.

The workaround for now is to use /Zi or /Z7 instead of /ZI, which can be set in project's property page, under "C/C++ | General | Debug Information Format".

Thanks a lot for the bug report.

YongKang Zhu
VC++ CodeGen and Tools
Posted by EricLeong [Feedback Moderator] on 12/14/2011 at 11:12 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 12/14/2011 at 4:44 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)