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, enabling you to 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 2015 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.