Share via


Debugging VBScript Macros

Home Page (Macros)OverviewHow Do I TopicsFAQReference

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 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.