Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

216 Part II Programming Fundamentals


Note If you add more than a few DataTips to your program code, be sure to use the Clear
All DataTips, Import DataTips, and Export DataTips commands on the Debug menu. These
features are especially useful in large development projects where you have numerous
variables and expressions and many DataTips active. In particular, the Import and Export
commands will allow you to transfer DataTips from one project to the next.


  1. Continue by clicking the Step Into button on the Standard toolbar.


The Step Into button executes the next program statement in the event procedure (the
line that’s currently highlighted). By clicking the Step Into button, you can see how the
program state changes when just one more program statement is evaluated. If you hold
the pointer over the Age variable now, you’ll see that it contains a value of 13.


  1. On the Debug menu, point to Windows, and then click Autos.


Tip If you are using Visual Basic 2010 Express, the Autos window is not available.
Alternatively, you can open the Locals window to see the value of the Age variable.
The Locals window displays a different set of variables.

The Windows submenu provides access to the entire set of debugging windows in
Visual Studio. The Autos window shows the state of variables and properties currently
being used (not only the properties you are currently setting, but others as well).
As you can see in the following screen shot, the Age variable holds a value of 13
and the TextBox1.Text property holds a string of “13”.
Free download pdf