VbScriptXtra automation object wrapper supports special debugging mode. While the debug mode is set wrapper instance outputs any error messages directly to the Message window every time error happens.
By default, VbScriptXtra wrappers created by CreateObject call inherit the xtra's default value for debugMode. You may change this default with Init xtra-level method. Wrappers created by other wrappers inherit this setting.
Note: While you are just investigating automation capabilities it is better to set Debug Mode by default, to ensure you always know if something goes wrong. It might be important while using cascading properties, since every property returning Automation Object will be wrapped by a new instance of VbScriptXtra wrapper. So, you may skip useful error description.
Starting from version 1.3.2.43 VbScriptXtra supports advanced debugging mode. Activate it by using xtra("VbScriptXtra").Init(2) or set obj.DebugMode to 2. In this mode whenever error occurs, xtra calls movie level method VbScriptXtra_DebugEvent errMes, errCode. Place a break point inside your implementation of this method and you will always know when and where error happened, including the calling context and other debugging features of Director.
|