Microsoft KB Archive/82151

= Microsoft Knowledge Base =

Single Stepping in Test Driver (F8) Steps into Include Files
Last reviewed: October 19, 1994

Article ID: Q82151

The information in this article applies to:

- Microsoft Test for Windows, versions 1.0 and 2.0

SUMMARY
When you single step through a script during execution in Test Driver (by pressing F8 or F10), you will step into Sub procedures, Function procedures, or other code in included files (those referenced by the

'$INCLUDE or REM $INCLUDE statement).

MORE INFORMATION
There are two methods by which you can step through your script file during execution: you can press F8, which will step through every line of code (including all calls to functions and procedures), or you can press F10, which allows you to step through all main level code, and step over all calls to functions and procedures without stepping into them.

However, there is no way to prevent stepping into an '$INCLUDE file using a single key.

To see how the stepping occurs, do the following:

  Load a file in the Test Driver that has in it at least one '$INCLUDEd file.  Step through the program by pressing either the F8 or F10 key. When you reach the '$INCLUDE statement and step, notice that Test loads that file and allows you to continue to step through it. When you reach the end of the '$INCLUDE file code, you will return to the main file.

To bypass an '$INCLUDEd file when stepping through a source file, do the following:


 * 1) Place a breakpoint on the line immediately following the '$INCLUDE statement. To do this, set the cursor anywhere in that line of code and press F9.
 * 2) Press F8 or F10 to step through program.
 * 3) When you reach the '$INCLUDE statement, press F5. This will run the program up to the breakpoint that you set, thus not stepping into the '$INCLUDEd file.
 * 4) Continue to step through the file as you did before.