.NET     Console.WriteLine( "All Things .NET" );
.NET Nerd Blog Home
6.26.2007

 
Debugging WPF Apps
The thing I have the biggest trouble with in WPF is debugging - when it comes to Bindings, ControlTemplates, generic.xaml, etc. it's sometimes difficult to figure out what the underlying WPF engine is doing "for you".

Below are some good tips. The overview:
  • Look at InnerException (or set the debugger to break on all exceptions)
  • Use the various TraceSources - I have the full config file in my local wiki.
  • Create a dummy ValueConverter that does nothing, but let's you set a breakpoint to see what's happening in the binding.
  • Use GetValueSource method to see where a value is coming from.

Tips on how to debug and learn about WPF � Josh Smith on WPF

Thanks Josh!


Comments: Post a Comment

Powered by Blogger