Data Transformation Services

Debugging ActiveX Scripts

If you have Microsoft® Windows® 2000, Microsoft Visual InterDev® 6.0 or the Microsoft Windows NT® 4.0 Option Pack installed, you can use the script debugger supplied with those products to troubleshoot your Microsoft ActiveX® scripts. Three types of events cause errors:

Your ability to debug these errors depends on whether or not you have selected the Turn on just-in-time debugging check box.

To select the Turn on just-in-time debugging option

Enterprise Manager

Enterprise Manager

Important  If you select the Turn on just-in-time debugging check box, save your script or Data Transformation Services (DTS) package prior to running it or you will lose your changes. When you close the debugger window, the script and the launching application are also closed.

Forcing the execution to break using code

To force the script code to stop, insert a STOP statement into your Microsoft Visual Basic® Scripting Edition (VBScript), or a Debugger statement into your Microsoft JScript® code.

Script syntax or object required errors

Scripting errors, such as a syntax error or "Object required" errors, can also occur:

Execution suspends due to an error raised from an object

These are errors raised by objects such as an Microsoft ActiveX Data Object (ADO) object. For example, the ADO object calls a nonexistent property on a COM object. An error of this type opens up the debugger using the same method as when execution is suspended because of a script error or object required error. Unlike script or object required errors, error information from the object itself is displayed.