11.11. Viewing a Script Error Log

Job templates, process templates, custom applications, custom actions, custom views, and other macros such as initializeMacro, propertyUpdateMacro and customStatusFlagsMacro, may use scripts to automate certain tasks. When a script fails to execute, any errors that have occurred are captured in a log.

If you have added debug statements to a script using print, the output of those statements will get captured in the log as well.

To view the script error log, go the Administration section and select Scripting > Show log.

By default, the Script log dialog box displays the debug messages and error messages that were displayed in the interface when the errors occurred. To view more details about the error, enable the Show error details check box. This may help you identify the source of an error.

Errors will continue to be added to the log as they occur. To reduce the amount of content shown in the log, disable the Show error details check box. Or, click Clear log to remove all content that has been written to the log so far.

To download the log to an HTML file so that it can be viewed and shared externally, click Download as HTML.


Note:
  • A maximum of 100K characters can be captured in the log. When that limit has been reached, content is no longer added. Click Clear log to remove existing content so that more data can be written to the log.

  • The log captures errors in the current session only, and is emptied when the session ends.



Release 18.2 - © ANSYS, Inc. All rights reserved.