Bug 5700 - Step over stopping too early in recursive call
Summary: Step over stopping too early in recursive call
Alias: None
Product: Runtime
Classification: Mono
Component: Debugger ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Zoltan Varga
: 6580 ()
Depends on:
Reported: 2012-06-18 06:47 UTC by Lluis Sanchez
Modified: 2015-02-20 12:29 UTC (History)
3 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 Lluis Sanchez 2012-06-18 06:47:32 UTC
Consider the following code:

static void Main ()
	Rec (1);

static void Rec (int n)
	if (n == 10)
	Rec (n + 1); // Step over here

Set a breakpoint in the Rec(n+1) call, and when the debugger stops remove the breakpoint and do a Step Over. The expected result is that the debugger runs until the execution of Rec(1) is completed. What happens instead is that the debugger stops inside the Rec(1) call.
Comment 1 Alex Corrado [MSFT] 2013-11-17 18:36:30 UTC
*** Bug 6580 has been marked as a duplicate of this bug. ***
Comment 2 Zoltan Varga 2013-11-30 15:05:38 UTC
Fixed in master.