Debug Menu (Microsoft Script Debugger)

The Debug menu contains commands that enable you to manage how scripts are executed while you are debugging.

Debug Menu Commands

Run

Causes execution to resume from the current statement.

Stop Debugging

Runs the current script to the end without stopping at any breakpoints.

Break at Next Statement

Causes execution to stop at the next scripting statement in the currently attached document. You typically choose this command, and then refresh the document in the browser.

Step Into

Executes one statement at a time from the current execution point. If the statement is a call to a procedure, the next statement displayed is the first statement in the procedure. If there is no current execution point, the Step Into command might appear to do nothing until you perform an action that triggers a script, such as clicking a button.

Step Over

Executes one statement from the current execution point. However, if the current statement contains a call to a procedure, the Step Over command executes the procedure as a unit, and then steps to the next statement in the current procedure. Therefore, the next statement displayed is the next statement in the current procedure even if the current statement is a call to another procedure.

Step Out

Executes the remaining lines of the current procedure. The next statement displayed is the statement following the procedure call. All of the script is executed between the current and the final execution points of the procedure.

Toggle Breakpoint

Sets or removes a breakpoint at the current line. In client scripts, you cannot set a breakpoint on lines containing non-executable script such as comments, declaration statements, or blank lines.

Clear All Breakpoints

Removes all breakpoints in your script. Your script can still interrupt execution, however, if you have embedded Stop (VBScript) or debugger (JScript or Java) statements, or if a runtime error occurs in your script.

See Also

Setting Breakpoints

Clearing Breakpoints

Stepping Through Scripts


© 1997 by Microsoft Corporation. All rights reserved.