Locals Window

The Locals window shows the active local variables and their values. Considering the example in Listing 5.1, when stepping into the Main method the Local window shows information about lineRead and result variables, as shown in Figure 5.6.

Figure 5.6 The Locals window shows information on local variables.

image

As you can see, the window shows names of the local variables, their types (in our example Boolean and String), and their actual values. When a variable is not initialized yet, the window shows the default value (for example, Nothing for reference types and zero for Integers). Moreover, if a variable represents an object such as ...

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.