You are here: Scripting Techniques > Working with Scripts > Debugging a Script

Debugging a Script

The following programming constructs are always available for displaying intermediate results or interacting with a running script:

Print

This Doc-To-Help method writes the value of a variable or constant to the build output window.

MsgBox

This VBScript function displays a message in a modal dialog box and optionally prompts for a response using command buttons.

InputBox

This VBScript function displays a message in a modal dialog box and prompts for a character string.

If you have the Microsoft Script Debugger installed, you can also use the Stop statement to halt execution and open a separate window for interactive debugging.

Doc-To-Help setup does not install the Microsoft Script Debugger, but you can download a free copy from the Microsoft site.

You can use the debugger's command window to display the variable values, execute intrinsic VBScript functions, or examine the object model of Doc-To-Help.