Lee
Lee

Reputation: 9462

Debugging Silverlight Bindings

I have a binding in Silverlight that is causing my application to exit. An unhandled exception is not throw; I just get a white screen.

I am not seeing anything from the binding engine in the output window.

Does anyone have any ideas for debugging this issue?

Upvotes: 4

Views: 3607

Answers (2)

Greg
Greg

Reputation: 2690

Dave, dont get too excited about the XAML debugging in SL5. I have been building projects for a few weeks now in SL5 and all I can say is that the XAML debugger will break after very little use and all you will get back is the ridiculous error message saying that the PDB's cant be found. I have reset my VS2010 setting numerous times and still the debugger remains crippled. I have spend days if not weeks trying to get to the bottom of the cause and as usual there are no support documents or help sites for this issue. Debugging Silverlight databindings is a black box scenario and a huge weakness in this technology. There is no way of knowing what the XAML parser is doing or not doing as the case may be. I have just had to scrap a project because of a total failure of the bindings in the View. The VM is preforming correctly by all bindings on the view fail. People will tell you that the output window in VS2010 will indicate the binding errors. My experience is that you can have total failure of bindings and NO errors will be shown in the output window. If you get into this scenario there is simply no solution that I am aware of and even the bug ridden XAML debugger wont be able to help you.

Upvotes: 0

JustinAngel
JustinAngel

Reputation: 16102

I suggest you use Karl Shiflett's Glimpse for Silverlight for that.

Also, I just "heard" Laurent Bugnion on twitter recommend using a mock Converter on a binding to figure out why it's failing. That's a good idea in case you're unsure as to what values are being fed to the binding.

Upvotes: 4

Related Questions