Debugging VBScript

The development application provides additional tools for debugging your VBScipt code.

Tip: These tools are based on the debugging tools in Microsoft Visual Studio, so if you are experienced with Visual Studio, then these tools should be familiar to you as well.
The tools are available in the following VBScript interfaces in the development application:
  • Procedures, in the Global tab of the Project Explorer;
  • The Graphics Script, in the Graphics tab of the Project Explorer;
  • Script groups, including the Startup Script, in the Tasks tab of the Project Explorer; and
  • The Screen Script that is attached to each Screen worksheet.
At this time, debugging is not supported in the following VBScript interfaces:
  • The Command animation that is attached to each Button object; and
  • ActiveX and .NET Control objects.

Generally speaking, you can debug your code by running your project in Debug mode (as opposed to the usual Run mode) and then observing how the values of project tags, locally-declared variables, and entire functions change as you step through the code. You can control the stepping by using the Debug tab of the ribbon, and you can observe the changing values in the Database Spy window.

Debugging VBScript