Debugging WinUI Applications with Visual Studio
Good debugging skills are essential for developers. While .NET developers need to know how to use features including breakpoints and the Output and Immediate windows, WinUI project debugging adds another set of tools and techniques to master. There are issues that can arise in the UI layer with data binding, layout, and resources. You will learn how to use Live Visual Tree and Live Property Explorer and how to discover data binding errors with Visual Studio’s XAML Binding Failures window.
In this chapter, we will cover the following topics:
- How to debug WinUI applications and work with breakpoints in ViewModels and service classes
- How to debug data binding failures by leveraging the XAML Binding Failures window in Visual Studio and avoid common problems when binding to collections
- Explore the Live Visual Tree window in Visual Studio to find layout problems in your XAML
- Discover and use Live Property Explorer...