Home Dashboard Directory Help
Search

Silverlight 4 Dictionary Debugging by Aligned


Status: 

Resolved
 as Fixed Help for as Fixed


9
0
Sign in
to vote
Type: Bug
ID: 557741
Opened: 5/7/2010 1:55:32 PM
Access Restriction: Public
2
Workaround(s)
view
8
User(s) can reproduce this bug

Description

please see my question on http://stackoverflow.com/questions/2789580/why-is-the-dictionary-debug-visualizer-less-useful-in-visual-studio-2010-for-silv.

The visualizer of a Dictionary is not very useful. Are there other debugging issues as well?
Details
Sign in to post a comment.
Posted by hwsoderlund on 7/30/2010 at 2:46 AM
Please ship it with SP1. This is making my life miserable.
Posted by Microsoft on 7/9/2010 at 8:31 AM
Thanks for reporting this issue you've encountered with Visual Studio!

This was an omission on our part - we had previously fixed this exact issue for Visual Studio 2008 SP1, but this fix was unfortunately not ported to the Visual Studio 2010 codebase. This is now fixed again (this time for good!) and we're looking into shipping this fix in VS2010 SP1.

Alex Turner
Program Manager
Visual Basic and C# Compiler
Posted by hwsoderlund on 5/14/2010 at 2:44 AM
I would like to add that I am experiencing the exact same problem, but with both List<T> and ObservableCollection<T>. I am attaching a screen shot of what I have to do to get at the actual items in an ObservableCollection<string>. Note that this only happens when debugging a Silverlight app (Silverlight version is 4). When debugging a WPF app I can get at the items directly, just like in VS 2008.
Posted by Microsoft on 5/9/2010 at 7:05 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Posted by Microsoft on 5/7/2010 at 5:07 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by SpMr on 6/22/2010 at 3:59 AM
Expand the collection's "Non-Public members" item and work your way through any necessary base classes until you reach a field called _items - expanding this should let you view the contents of the collection.

YMMV depending on the kind/complexity of object used. In the case of an ObservableCollection this requires 6 extra clicks, not so bad in the case of a generic List though.

I do believe the visualizer is still poor, and that support should be extended to Silverlight such that the visualizer is as useful as when debugging other kinds of apps.
Posted by rickpastoor on 6/4/2010 at 2:01 AM
1) Include System.Linq
2) Use .Take() in the watch window to see whats inside
File Name Submitted By Submitted On File Size  
VS2010_Inspector_ObservableCollection.png 5/14/2010 45 KB
VS2010_Inspector_ObservableCollection.png 5/14/2010 45 KB
nokia_configuration_tool_5_0_userguide.pdf (restricted) 7/10/2010 -
cluster 31740.DOC (restricted) 7/10/2010 -
cluster 16539.XLS (restricted) 7/10/2010 -