Mark Gilbert's Blog

Science and technology, served light and fluffy.

Debugging XAML

One of the questions that was raised during the WPF presentation I made at the most recent Microsoft Developers of Southwest Michigan users group meeting was: “Can you debug the XAML?”  It was a very good question, but one that I didn’t have an answer for.

Well, doing a simple search for “debug XAML” turned up quite a few posts about debugging XAML issues.  While I haven’t seen anything as sophisticated as being able to step through the animations as they’re running, but there are a few ways to get more information back about exceptions being thrown.  Here is a small collection:

  1. Get line numbers of XAML issues (Peter Himschoot):
  2. More descriptive XAML exception details (Rob Relyea):!167AD7A5AB58D5FE!1625.entry
  3. More on XamlParseException (Laurent Bugnion):
  4. Xaml Runtime Parsing Exceptions (c/o Erno de Weerd):
  5. “Debugging Dynamic XAML in Silverlight” (Julia Lerman):

So, the simple answer is yes, you can debug problems with XAML.  The longer, more qualified answer is that while it’s possible, the support isn’t terribly robust yet but should improve with newer dev environments (Visual Studio, Expression Blend, etc.).

March 15, 2008 - Posted by | WPF/Silverlight

Sorry, the comment form is closed at this time.

%d bloggers like this: