The JITDebug property specifies whether a run-time error in a Microsoft® ActiveX® script causes a scripting debugger session to be opened.
object.JITDebug [= value]
| Part | Description |
|---|---|
| object | Expression that evaluates to an Application object. |
| value | If TRUE, the script debugger is entered. |
Boolean
Read/write
HRESULT GetJITDebug(VARIANT_BOOL *pRetVal);
HRESULT SetJITDebug(VARIANT_BOOL NewValue);
If JITDebug is TRUE, the following behavior occurs in response to different error types.
| Error Type | Behavior |
|---|---|
| Hard break (for example, a Microsoft Visual Basic® Scripting Edition (VBScript) Stop statement) | The Script Debugger is entered if you agree to debug the script. |
| Run-time errors and errors raised by objects | The Script Debugger is entered without prompting. |
If JITDebug is FALSE, the following behavior occurs in response to different error types.
| Error Type | Behavior |
|---|---|
| Hard break (for example, a VBScript Stop statement) | The break is ignored, and the script continues to execute. |
| Run-time errors | The script fails and an error message is displayed. |
| Errors raised by objects | An error message supplied by the object is displayed. |