Debugging between VS 2011 beta and Blend 5 beta

May 17, 2012 at 4:08 PM

Hi,

I'm using MVVM Light v4 rc to create a Metro app. Can I just ask if it should currently be possible to debug design time data from Blend 5 beta by attaching the visual studio 2011 debugger as you demonstrated in Mix '10 with Blend 4 and VS2010? I can't get it to work at the moment and am not sure if its down to my code or the beta software?

thanks in advance,

J.

May 18, 2012 at 12:18 PM

In addition I think the design time binding just doesn't work at the moment with these early builds. Can anyone confirm this?

Coordinator
May 18, 2012 at 12:34 PM

Hi,

Design time binding works. For instance, check the following blog post

http://blog.galasoft.ch/archive/2012/04/18/slides-and-source-code-for-my-past-talks-this-year.aspx

If you download https://skydrive.live.com/redir.aspx?cid=40cffde85f1ab56a&resid=40CFFDE85F1AB56A!1273&parid=40CFFDE85F1AB56A!1267 and open in Blend for WinRT or in the Visual Studio Designer, you will see some design time data.

The technique of attaching VS11 to Blend 5 unfortunately does not work anymore. 

Cheers,

Laurent

May 18, 2012 at 1:56 PM

Hi Laurent,

Many thanks for the reply.  Yes, I can see the data in the example code you mentioned, so I must have something wrong with my code. I will take a look.

Shame about not being able to debug. Hopefully just a beta thing.

kind regards,
John.

May 18, 2012 at 3:03 PM

Just an update to let you know, I have succeeded in getting design time data coming through. I think my problem might be related to using a GridView bound to a CollectionViewSource defined in the XAML as follows:

<CollectionViewSource
        x:Name="groupedItemsViewSource"
        Source="{Binding Groups}"
        IsSourceGrouped="true"
        ItemsPath="Items"/>

 If I bind a ListBox to the same collection (Groups) in the same page I see the data at design time, so its something to do with the GridView and/or the CollectionViewSource.

Nov 23, 2012 at 5:38 PM
jdbell wrote:

Just an update to let you know, I have succeeded in getting design time data coming through. I think my problem might be related to using a GridView bound to a CollectionViewSource defined in the XAML as follows:

<CollectionViewSource
        x:Name="groupedItemsViewSource"
        Source="{Binding Groups}"
        IsSourceGrouped="true"
        ItemsPath="Items"/>

 If I bind a ListBox to the same collection (Groups) in the same page I see the data at design time, so its something to do with the GridView and/or the CollectionViewSource.

You could set the Source for the design, here is an article explaining how: http://bit.ly/TacvU0