Bug 11947 - Unable to view contents of IEnumerables in watch window (No ToList()/ToArray() extensions)
Summary: Unable to view contents of IEnumerables in watch window (No ToList()/ToArray(...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: 4.0.3
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2013-04-24 15:43 UTC by Chris Hamons
Modified: 2013-06-07 19:39 UTC (History)
1 user (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 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:

Description Chris Hamons 2013-04-24 15:43:58 UTC
In visual studio, it is easy to view to contents of a ienumerable either by digging into it's internals or by adding a .ToList() to the end. 

In Xamarin Studio, I can't do this. They only way I know to view an ienumerable's contents is to stop debugging and add a 

foreach(var v in myEnumerable)

and rebuild.
Comment 1 Jeffrey Stedfast 2013-04-25 17:12:08 UTC
yea, our web guy requested a similar feature.

I'll look into implementing this...
Comment 2 Jeffrey Stedfast 2013-06-04 17:31:54 UTC
Step 1 is complete.... I've implemented support in Xamarin Studio to invoke generic methods in the debugger (needed some runtime support as well, so thanks go out to Zoltan for that).

That makes it possible to invoke System.Linq.Enumeration.ToList<T> () and have it return the proper results.

Unfortunately, that will require Mono >= 3.0.12.
Comment 3 Jeffrey Stedfast 2013-06-07 19:39:09 UTC
You can now invoke LINQ extension methods in the immediate window and the watch window if you are using Mono >= 3.0.12