A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
VbScriptXtra Reference/objAuto.DebugMode

objAuto.DebugMode

Syntax

bDebugMode=objAuto.DebugMode
objAuto.DebugMode=bDebugMode

Gets

Boolean (integer) value, which indicates whether wrapper currently in debug mode.

Sets

Integer value. Use true (1) to set debug mode. Use the false value to clear the debug mode of the wrapper instance. Use 2 to set the advanced debugging mode.

Description

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.

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com