Chapter 11: Debugging WinUI Applications with Visual Studio
Good debugging skills are essential for developers. While .NET developers need to know how to use things such as breakpoints and the Output and Immediate windows, WinUI debugging adds another set of tools and techniques to learn. There are issues that can arise in the UI layer with data binding, layout, and resources. You will learn how to use the Live Visual Tree, the 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 problems with the XAML Binding Failures window in Visual Studio and avoid common problems binding to collections
- How to use the Live Visual Tree window in Visual Studio to find layout problems in your XAML
- How to use the Live Property Explorer to get...