Watch Windows
Watch windows enable monitoring object variables or expressions so that you can track what a variable is doing. There are four Watch windows available so that you can track different objects or expressions. To add items to a Watch window, when in break mode right-click the object in the code editor and then select the Add Watch command from the pop-up menu. Continuing our example of Listing 5.1, imagine you want to keep track of the Test
method state. Run the application in Step Into mode by pressing F11. When the debugger breaks the application execution, right-click the Test
method definition and then click Add Watch. The method is considered as an expression. The first available Watch window is shown and contains the Test
item ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.