It is proven that we software developers spend more time debugging than actually writing code. Guess what?!! WPF is no different… We have to debug and debug and debug! So the WPF Disciples decided to make a list of articles that can help WPF developers make the debugging process easier.
Debugging DataBinding
– Marlon Grech wrote a Markup Extension that you can use in your DataBinding that will auto magically break in Visual studio so that you can see your binding value. Your markup would look similar to this. read more.
– Beatriz Costa blogged on how you can enable tracing in your data binding by using a new WPF Feature of .Net 3.5. So basically you can do something like this in your data binding… read more.
– Corrado Cavalli wrote another article on the PresentationTraceSources feature of .Net 3.5 giving some more insights.
Tools, tools and more tools…
Snoop is a tool that can you can use to hook to your running WPF application and browse the Visual Tree of the application. You can also inspect and edit the properties, inspect routed events (including the elements that handle them) and magnify sections in the UI.
Mole is a tool that integrates with Visual Studio (also available as a standalone app in the near future) that lets you inspect the Visual Tree of your application, inspect and edit properties, view the XAML for selected elements, preview a snapshot image of individual elements and much much more .
Performance Profiling Tools for WPF. These are a set of tools provided by Microsoft that allow you to analyze the run-time behaviour of your application and determine the types of performance optimizations you can apply .
Reflector is the class browser, explorer, analyzer and documentation viewer for .NET. Reflector allows to easily view, navigate, search, decompile and analyze .NET assemblies in C#, Visual Basic and IL. There is also a plugin related to WPF for Reflector called BAMLViewer which enables the user to see the XAML embedded in the assemblies being analayzed.
You may also want to write your own tool that integrates with Visual Studio to do your own thing, here is a brilliant article from Karl Shiflett on how to create a debugger visualizer.
More tips and tricks…
– Josh Smith wrote a very interesting article where he gives some tips on debugging databinding and also on how to dig into exceptions that are thrown on runtime (ex: invalid StaticResources ) read more.
– Shawn Burke blogged on how one can configure Visual Studio to debug .Net framework source code. Read more ….
Do you have any other tips/tricks of debugging WPF applications? then post a comment and share your knowledge with the rest of the WPF Community.
Nice job! This should be very helpful for a lot of people new to WPF.
-josh
yea, the WPF Disciples ROCK!!!!!!!
NIce work. We should probably also include a link to the article discussing how to setup vs to be able to debug the .net source code: http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx
-Andrew
good idea, thanks for pointing it out 🙂
[…] Debugging in WPF 10 Apr 2008 Posted by ramsonit in WPF. trackback Yes!!! debugging is part of the developer life whatever may be the technology, WPF disciples has written a great article about debugging in WPF. […]
Here’s a useful technique for debugging/tracing triggers effectively. It allows you to log all trigger actions along with the element being acted up.
http://www.wpfmentor.com/2009/01/how-to-debug-triggers-using-trigger.html
Tips and Tricks: Synchronizing asynchronous events onto a window thread
http://blogs.microsoft.co.il/blogs/davids/archive/2009/04/27/isynchronizedinvoke-and-wpf.aspx
Brilliant post! I’ve bookmark this site to return later. cheers! (i>Z- cheapest proactol Hzc’S
you’re really a good webmaster. The website loading speed is incredible. It seems that you’re doing any unique trick. In addition, The contents are masterwork. you have done a wonderful job on this topic!
This web site is known as a walk-by way of for all the data you needed about this and didn’t know who to ask. Glimpse right here, and you’ll positively uncover it.
Your blog is very good. I like your blog.
A blog good and interneting
I wondere if there are people out there with experience of WPF application development – and maybe more interesting – running WPF in production.
Very descriptive blog, I liked that a lot. Will there be
a part 2?
Hello! I simply would like to give you a huge thumbs up for the excellent info you’ve got here on this post. I will be coming back to your web site for more soon.
Hi there outstanding website! Does running a blog similar to this take a lot of work?
I have virtually no knowledge of computer programming however I was
hoping to start my own blog soon. Anyway, should you
have any recommendations or tips for new blog owners
please share. I understand this is off subject however I simply had to ask.
Thanks!
The following is a look at some of the most common signs that inform about this
condition. Something deep in that has always been
there that is easy accessible with every breath and fills you with confidence
and joy. Non drug treatments are also available for anxiety
disorders, but they are not as effective and fast as medication.
Please do not start off any Email with, “I have just seen your profile. Ending your date – never forget to thank your date and avoid giving false impressions. Today we can browse, play games, shop, investigate and more all from the comfort of our own computer.
I’m gone to inform my little brother, that he should also visit this website on regular basis to take updated from latest reports.
Un discours de mariage rédigé en bon français, foncez!
tub showers
Debugging in WPF – WPF Disciples tips and tricks | WPF Disciples
What i do not understood is in reality how you’re now not really a lot more neatly-preferred than you might be
right now. You are so intelligent. You recognize therefore considerably in relation to this matter,
produced me in my opinion imagine it from numerous numerous angles.
Its like women and men aren’t involved unlexs it’s something to ddo wit
Girl gaga! Your own stuffs great. Always deal with
it up!