Debug.trace()

Syntax:

Debug.trace( String )

Parameters:

String – any value, string or expression. A string should be surrounded by quote marks. This parameter is required.

Remarks:

This function will write a string to the Script Console. This function can be used to help debug an OpusScript program; for example, you can display the value of a variable to check if it is what you expect it to be. The Script Console is not available when a publication is published, therefore this function will have no adverse effect in your program. However, we suggest you comment out any debug statements you enter before you publish the publication.

image\Script_Button.jpgExamples