Bug 15086 - Cannot step into an interator
Summary: Cannot step into an interator
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-09-30 17:49 UTC by Marek Safar
Modified: 2014-03-27 07:58 UTC (History)
2 users (show)

Tags:
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 Developer Community or GitHub 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:
VERIFIED FIXED

Description Marek Safar 2013-09-30 17:49:19 UTC
using System.Collections.Generic;

class C
{

	public static void Main ()
	{
		foreach (var x in Foo ()) { // Step-into Foo does not work (does nothing)
			continue;
		}
	}

	public static IEnumerable<int> Foo ()
	{
		yield return 1;
		yield return 2;
	}

}
Comment 1 Jeffrey Stedfast 2013-09-30 18:44:01 UTC
fixed in git master
Comment 2 Sadik Ali 2014-03-27 07:58:26 UTC
I have verified this issue with the help of code mentioned on bug description and noticed that step into an iterator is working.

Screen cast: http://screencast.com/t/mDpXskUn

Build Information:

=== Xamarin Studio ===
Version 4.2.4 (build 266)
Installation UUID: ce3f5199-e126-42fd-bc8a-6a96370af9ab
Runtime:
 Mono 3.2.6 ((no/9b58377)
 GTK+ 2.24.23 (Raleigh theme)
 Package version: 302060000

=== Apple Developer Tools ===
Xcode 5.0 (3332.22)
Build 5A1412

=== Build Information ===
Release ID: 402040266
Git revision: 57fa6b7639703775ae1d5c46536e42ab424cb177
Xamarin addins: eee141c29724a19529e77b8e743086d95b29f5ba

=== Operating System ===
Mac OS X 10.9.2
Darwin mac109s-Mac-mini.local 13.1.0 Darwin Kernel Version 13.1.0
    Thu Jan 16 19:40:37 PST 2014
    root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64