More functions are available for server side only, they are mainly for debugging purpose. These functions required debug mode to be turned on by clicking on Debug button, the debugging information will be displayed on the Status Window when Script is selected on Task Window.
debugString( String) is used to send out debugging string into Status Window.
debugTag( Tagname) simply print Tagname and its value onto Status Window.
Below is a sample code that demonstrates the use of debugging functions for troubleshooting. It can be copied and pasted into a script entry to see the program flow.
var a = getTag( "tagA") || 1; //default value 1 var b = getTag( "tagB") || 2; //default value 2 var c = getTag( "tagC"); //no default value if (c > 1000) { a = 1; b = 2; } a = a + 1; setTag( "tagA", a); b = b + 2; setTag( "tagB", b); c = a + b; setTag( "tagC", c); debugTag( "tagC"); //this is a sample use of debugTag(). //debuging function will be executed in debug mode only debugString( "Script is successfully executed."); //keep this as last line.