Bug 4516 - Step over goes too far
Summary: Step over goes too far
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-04-19 06:38 UTC by Jb Evain
Modified: 2015-02-20 12:29 UTC (History)
3 users (show)

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


Attachments
repro (2.60 KB, application/zip)
2012-04-19 06:38 UTC, Jb Evain
Details


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:
Status:
RESOLVED FIXED

Description Jb Evain 2012-04-19 06:38:09 UTC
Created attachment 1699 [details]
repro

To repro:

Unzip, make && make start

This will start the debuggee.

mono debugger.exe to start the debugger.

Press enter in the debuggee to continue the test
Observe the debugger. It outputs:

hit breakpoint at line: 10:		var a = Add (Forty (), Two ());
stepped, now on line: 20:	{
stepped, now on line: 21:		return 40;
stepped, now on line: 22:	}
stepped, now on line: 11:		Console.WriteLine (a);

The debugger correctly steps into the body of Forty.
We step over the body of Forty until we reached the end.

After we've reached the end of Forty, the debugger is on line 11, preventing us to step into Two().

I expect to be back on line 10, and to be able to step into Two.
Comment 1 Jb Evain 2012-05-04 03:36:10 UTC
Zoltan fixed it in:

ec1ee6387111919cbe9995ea20a939aa9959e937
597ad4d8ab0d6e88362c85ce7ab9fc71cba0d62f
8960ec52a54a884c9bc00c181984e1cc0c925777

Thanks!