Debugging VBScript Macros
Home Page (Macros) | Overview | How Do I Topics | FAQ | Reference
Visual C++ includes some tools that can help you debug VBScript macros.
To debug a macro
-
Use the PrintToOutputWindow method to print diagnostic messages or values of variables at various points in the macro.
-
Use the VBScript MsgBox command to halt the macro so that you can inspect the messages printed with PrintToOutputWindow or MsgBox. When you are ready to continue the macro, dismiss the message box.