When debugging web page scripts or HTC behaviors it is often very helpful to view debugging information as the scripts run. However you don't want these scripts to run when you release the page or the behavior. The attached script file has a number of useful debugging functions that can be turned on or off by setting the conditional compilation flag at the top of the file. In this way you can put debugging code anywhere in you scripts and turn all of them off from single place. Functions include ASSERT TRACE ALERT (only opens message box when in debug mode)