APGen Documentation Previous Topic: Script.LastModified Next Topic: Script.Waiting Parent Topic: Script Object    Script Object
Script.Debug
See Also:

The Script.Debug property returns whether script errors cause error dialogs and just-in-time debugging.

Syntax

VBScript:

boolDebug = Script.Debug

JScript:

boolDebug = Script.Debug;
Object

Script The Script object.

Return Value

boolDebug True: Syntax errors cause error dialogs, and run-time errors allow just-in-time debugging.
False: Errors do not trigger any user interaction.

Notes

The Script.Debug property is read-only.  When True, error dialogs will notify the user when fatal errors occur, and if a script debugger is installed, the user is given the option to debug the script when fatal run-time errors occur.

To change the Script.Debug property, set the APGScript.Debug  property before the script is first run, or set the APGen.Debug property before opening or running the script.

For more information on syntax errors, run-time errors, and error-handling, see Error Handling.

Applies To

Script Object