About Controlling Program Execution

To control program execution, you set breakpoints, which are places where the script should pause and call the debugger. When you set breakpoints, the line containing the breakpoint is highlighted in the editing window, as shown in the following illustration:

After setting breakpoints, you run the document containing the script. When execution reaches the first breakpoint, the script pauses and starts the Script Debugger. The current line is marked in the editing window, as shown in the following illustration:

After reaching a breakpoint, you can execute, or step into, individual lines in your script. As you step through lines, the script executes and you can see the effect of each line.

If you reach a point in your script that calls another procedure (a function, subroutine, or the script associated with an object or applet) you enter (step into) the procedure or run (step over) it and stop at the next line. At any point, you can jump to the end (step out) of the current procedure and proceed to the next breakpoint.

See Also

Setting Breakpoints

Stepping Through Scripts


© 1997 by Microsoft Corporation. All rights reserved.