Datasheet
❑ Step Into — This command makes the debugger execute the current line of code. If that code
invokes a function, subroutine, or some other procedure, the point of execution moves into that
procedure. It is not always obvious whether a line of code invokes a procedure. For example, a
line of code that sets an object’s property may be simply setting a value or invoking a property
procedure.
❑ Step Over — This command makes the debugger execute the current line of code. If that code
invokes a function, subroutine, or some other procedure, the debugger calls that routine but
does not step into it, so you don’t need to step through its code. However, if a breakpoint is set
inside that routine, execution will stop at the breakpoint.
❑ Step Out — This command makes the debugger run until it leaves the routine it is currently
executing. Execution pauses when the program reaches the line of code that called this routine.
❑ QuickWatch — This command displays a dialog that gives information about the selected code
object. Figure 1-24 shows the dialog displaying information about a
TextBox control named
txtDirectory. If you look closely, you can see some of the control’s properties including
TabIndex, TabStop, Tag, and Text.
Figure 1-24: The QuickWatch dialog lets you examine an object’s properties
and optionally set a new watch on it.
If you double-click on a property’s value, you can change it within the dialog. If you click the
Add Watch button, the debugger adds the expression to the Watch window shown in Figure 1-25.
You can also highlight a variable’s name in the code and drag and drop it into a Watch window
to create a watch very quickly. Right-click a watch in this window and select Delete Watch to
remove it.
25
IDE
571982 ch01_2.qxd 1/19/06 1:15 PM Page 25