Debug.tracePane()

Syntax:

Debug.tracePane( PaneName, String )

Parameters:

PaneName – the name of the pane in the Script Console that the String should be written to. PaneName can be ‘Default’ or ‘Errors’ or any new name you wish to add to the Script Console. PaneName should be surrounded by quote marks. This parameter is required.

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 a specified pane in 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 and place it in a different pane than the ‘Default’ pane. 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