|
APGen Object |
|
See Also: |
The APGen.Debug property sets/returns whether errors in scripts cause error dialogs and Just-In-Time debugging
VBScript:
JScript:
| oAPGen | An APGen object. |
| boolDebug | True: Syntax errors cause error dialogs, and run-time errors allow just-in-time debugging. False: Script errors don't trigger user interaction. |
Child APGScript objects (scripts run or opened by this APGen object) inherit the APGen.Debug value for their APGScript.Debug property. This gives developers an easy way to set the debug property for multiple scripts.
When the Debug property is True, error dialogs will notify the user when fatal errors occur. In addition, if a script debugger is installed, the user will be given the option to debug the script when fatal run-time errors occur.
When the Debug property is False, script errors cause no user interaction. You can view the script log file to determine if any script errors occurred.
The default value for APGen.Debug is copied from the registry setting:
Key: HKEY_LOCAL_MACHINE\SOFTWARE\WebGecko\APGen\Defaults
DWORD Value: "Script.Debug"
When APGen is installed, this value is set to 1, which corresponds to APGen.Debug = True. You can disable debugging for the computer by setting this value to 0. This can be overridden for individual scripts by setting APGen.Debug or APGScript.Debug to True.
This VBScript line sets Script.Debug to False for all the APG scripts oAPGen will run.
oAPGen.Debug = False