2.7 Debugging a Viewsheet Script
When you attempt to debug a Viewsheet script, it is often helpful to view the current values of variables and objects. To do this, use the alert() function, which opens a dialog box to display a specified string.
alert('string to display')
Note: The alert() function does not pause script execution.
For example:
var arr = ['Sue','Robert','Eric'];
alert(arr.join(","))

You can also use the alert() dialog box to display critical information to a user (e.g., that the user's selections have resulted in an empty dataset being returned).
See Also
Protecting a Viewsheet from Script Errors, to improve Viewsheet robustness.
| << 2.6 Protecting a Viewsheet from Script Errors | © 1996-2013 InetSoft Technology Corporation (v11.5) | 3 Adding Script to a Viewsheet >> |