Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

214 Part II Programming Fundamentals


The breakpoint immediately appears in red. See the following screen shot for the
breakpoint’s location and shape:


  1. Click the Start Debugging button to run the program again.


The form opens just as before, and you can continue your tests.


  1. Type 13 in the Age text box, and then click Test.


Visual Basic opens the Code Editor again and displays the Button1_Click event
procedure—the program code currently being executed by the compiler. The
statement that you selected as a breakpoint is highlighted in yellow, and an arrow
appears in the Margin Indicator bar, as shown in the following screen shot:

You can tell that Visual Studio is now in debugging mode because the word
“Debugging” appears in its title bar. In debugging mode, you have an opportunity to
see how the logic in your program is evaluated.
Free download pdf