for (int yearIndex = 0; yearIndex < totalYears; yearIndex++)
{
calendar[yearIndex] = new CalendarItem();
calendar[yearIndex].Weeks = Year.GetWeeks(yearIndex);
}
and I want to break after calendar[yearIndex].Weeks has been set. I could break on the line itself, step past it, and then examine the value in the watch or let the debugger step onto the yearIndex++ statement and hover my mouse, but it is more work when I am going to be examining the value a lot.continue
statement, i.e., for (int yearIndex = 0; yearIndex < totalYears; yearIndex++)
{
memento[yearIndex] = new RetirementProjectionRecord();
memento[yearIndex].Ages = this.RetirementProjection[yearIndex].Ages;
continue;
}
that I can put a break point on. This is convenient inside a for-loop, but outside, I have been typing the pointless line, int x = 0; x++;
to have a place to hang a breakpoint, often so I can break before the flow of control leaves a code block and I lose access to variables local to the code block scope.