C.3. The Locals and Watch Windows

In the preceding section, you learned that the Quick Info feature allows you to examine the value of a variable. In this section, you will learn how to use the Locals window to assign new values to variables while your program is running. You will also use the Watch window to examine the values of expressions.

1.
Inserting breakpoints. Set a breakpoint at line 16 (Fig. C.9) in the source code by left clicking in the margin indicator bar to the left of line 16. Use the same technique to set breakpoints at lines 19 and 20 as well.
Figure C.9. Setting breakpoints at lines 16, 19 and 20.

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.