-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Windows Application Development Cookbook
By :
Unfortunately, sometimes the prepared application does not work as expected. In such a case, it is useful to debug the solution to see how the application is executed. There are various ways of debugging, such as performing step-by-step execution or using breakpoints to stop the execution of a particular line of code. In this recipe, you will learn how to use both unconditional and conditional breakpoints.
To complete this recipe, you need the project with two pages, represented by the MainPage and ProductsPage classes. It is necessary to pass a category identifier while navigating from MainPage to ProductsPage.
To perform the breakpoints-based debugging, you need to follow the given steps:
ProductsPage.xaml.cs file.categoryName = categoryNames[categoryId];

categoryId to show a popup with the current value of the variable.true to stop the execution, such as:categoryId > 0
