|
|
|
BlueCielo Meridian Enterprise 2013 VBScript API Reference | BlueCielo ECM Solutions |
No matter how good of a programmer you are, you will eventually want to debug your VBScript code, if not due to programming errors, then due to use cases or data that you did not anticipate. The Visual Basic 6 or Visual Studio programmer has the convenience of a debugger built into those development tools but beyond the script validation feature of the Meridian Enterprise Script Editor, you cannot debug VBScript in the editor. For real debugging, you need a different tool. The tool to use depends on the client application where you want to debug the script:
The key to debugging VBScript from applications other than
Before you begin
Visual Studio 2008 or higher must be installed on the computer running the application from which you want to debug. Other debugging tools can be used as long as they support attaching themselves to a running process. To debug VBScript running in a Web Access session, the debugging tool must be installed on the computer running Internet Information Services and you must have administrative rights on the computer.
To debug VBScript in any application with Visual Studio:
Note The name of the project is irrelevant because you will not add any code to the project and will discard it when you are finished using the debugger.
When script first executes after the process is attached to Visual Studio, the vault's active VBScript configuration expressions and the event handler code module are loaded in Visual Studio. You might have to step over (press F10) some configuration expressions or subprocedures before the particular expression, subprocedure, or function that you want to debug is entered. Whenever the event handler code module is loaded, you can set breakpoints in the BlueCielo VB Script [dynamic] window and step through the code similar to debugging in PowerUser as described in Understanding the Microsoft Script Debugger.
To open the BlueCielo VB Script [dynamic] window, in the Solution Explorer expand Script Documents, expand AMScriptHost, and double-click BlueCielo VB Script.
Just like with using the Microsoft Script Debugger, to make changes to script code, you must edit it in Meridian Enterprise Configurator, save your changes, reopen the vault in the host application, and restart this task from step 5.
Following is a list of host applications related to Meridian Enterprise that you can attach to debug VBScript code:
Related concepts
Understanding the Meridian Enterprise Script Editor
Understanding the Microsoft Script Debugger
Understanding configuration expressions
Understanding the Meridian object model
Understanding the Meridian functions
Understanding Meridian event procedures
Understanding automation objects
Understanding object arguments
Understanding VBScript and Web Access
Understanding the CurrentPropertyName property
Related information
Formatting text with RTF codes
Copyright © 2000-2013 BlueCielo ECM Solutions |