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 Locals window shows information about lineRead and result variables, as shown in Figure 5.10.

Image

FIGURE 5.10 The Locals window shows information on local variables.

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 ...

Get Visual Basic 2015 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.