DDC2015 WPF Troubleshooting in VS2015 Session
Today I delivered a session on Troubleshooting of WPF applications using the in-the-box tools of VS2015.
The slides can be found here:
After defining the terms “debugging” and “profiling”, I showed new but non-WPF debugging features available in Visual Studio such as PerfTips, 64bit Edit & Continue, Watch Window Lambda Expression Evaluation and the Diagnostic Tools Window:
I think PerfTips are a great tool and a huge timesaver. They let you immediately spot a slow method in your code without event thinking about inserting some System.Diagnostics.Stopwatch code.
The Diagnostic Tools Window adds information to your debugging session that was only available by means of a profiling session before. It allows you to easily spot any spike in CPU or memory consumption or any suspicious garbage collector activity.
The Memory Tab is really powerful for analyzing issues such as memory leaks. Check out these blog posts for details:
We then focused on the WPF related debugging tools Live Visual Tree and Live Property Explorer:
I really appreciate that the properties are grouped by data source. This makes it very easy to figure out what is going on and where the actual runtime value comes from.
We concluded the session with a couple of demos that showed the power of the Timeline Tool for WPF:
A great thank you goes out to Neue Mediengesellschaft Ulm (NMG) for the organization of the event and everybody who attended. Thank you very much!