Inspection tools for debugging
When working with breakpoints, we must know where to find the information we want to visualize and whether that information is correct or not. For this, within VS, we have a series of windows that will allow us to visualize different types of information. So, let’s take a look at the most important ones.
The Watch window
The Watch window allows us to keep track of the values of variables or properties while we execute our code step by step. This window is especially useful when we have pieces of code that are repeated several times, such as cycles or common methods. To access this window, we must place a breakpoint in the code and execute the application.
Once the application stops at the breakpoint, we will be able to deploy the Debug | Windows menu. This will show us a set of new debugging windows that we can only access while running the application. Let’s select the Watch option so that we can choose a window, as shown in Figure...