Programming MicrosoftВ® OutlookВ® and Microsoft Exchange 2003, Third Edition (Pro-Developer)

Using the Microsoft Script Debugger, shown in Figure 5-2, you can debug the VBScript code you add to an Outlook application.

Figure 5-2: The Microsoft Script Debugger

To use the Script Debugger, you must first install it. It's best to get the latest version from http://msdn.microsoft.com/scripting/ . The Script Debugger is also installed as part of Microsoft Office. If you do not already have the debugger, Office will automatically install it when you attempt to use it from Outlook.

You can launch the Script Debugger in three ways. The first way is to insert a Stop statement in your VBScript. When you run your form and the Stop statement is executed, the Script Debugger should automatically be launched. The second way is to launch it manually from a form that contains VBScript and is in run mode by choosing Forms, Script Debugger from the Tools menu. The final way is to enable JIT debugging; when you hit an error, the debugger is automatically launched.

Here are some common tasks you can perform with the Script Debugger:

Категории