Platform SDK: Exchange 2000 Server

EnableDebug Method

[This is preliminary documentation and subject to change.]

Enables script just in time (JIT) debugging.

[Visual Basic,VBScript]
Sub EnableDebug(bDebug As Boolean)
[C++]
HRESULT EnableDebug(VARIANT_BOOL bDebug);
[IDL]
HRESULT EnableDebug([in] VARIANT_BOOL bDebug);

Remarks

This method allows the user to configure the just-in-time (JIT) script debugging capability. You configure this capability by setting the "http://schemas.microsoft.com/cdo/workflow/enabledebug" property of the OnSyncSave and OnSyncDelete event registration items for your workflow folder. If you don't set this property explicitly, the event sink sets it to 'FALSE'.

Note

To enable debugging on your server, you need to set the registry key "HKCU/Software/Microsoft/Windows Script/Settings/JITDebug" to the value "1" and type "REG_DWORD".

You use JIT debugging for runtime errors. JIT debugging does not catch syntax errors. The workflow engine logs syntax errors in the AuditTrail.

Example

See Also

IProcessInstance