Bug 7901 - Debugger steps over variable asignments when you use step into
Summary: Debugger steps over variable asignments when you use step into
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-10-18 14:07 UTC by Greg Ratner
Modified: 2017-08-17 17:24 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Greg Ratner 2012-10-18 14:07:22 UTC
Here is a piece of code being debugged:

1                public void SetDayOfWeek (DateTime date)
2		{
3			if (myScrollView != null)
4			{
5				curRect = myScrollView.VisbleContentRect;
6				curZoom = myScrollView.ZoomScale;
7			}
8			EventsNeedRefresh = true;
9			CurrentDate = date;
10			FirstDayOfWeek = date.AddDays (-1 * (int)date.DayOfWeek);
11		}

When "Step Into" is used, the debugger returns up the stack on before hitting line 8 and skips all the assignments.
When you use "Step Out" the debugger goes through up to line 11. 

Sounds like a bug to me!
Comment 1 Rodrigo Kumpera 2017-07-13 00:18:40 UTC
Without a full test case I can't reproduce this issue.
Comment 2 Ludovic Henry 2017-08-17 17:24:23 UTC
Please reopen whenever you provide a reproduction case so we can have a look. Thank you.