You might sometimes find that the easiest and quickest way to debug a problem is to put up a message box. 
Using ALERT_MESSAGE() in your scripts causes a dialog box with a predefined message to appear. 
ALERT_MESSAGE() can also display a mixture of text and variable values.
For example, if in one of your scripts you wanted to display the value of an Akey that is passed into the script, ALERT_MESSAGE() would look something like this:
ALERT_MESSAGE("The value of AKEY1 is =>" + objListManager.AKey1\[0\] + "<=");
and during the execution a message box like this would be displayed:
!worddavaf485e25f57cd86bb5b0fc63f3f1b1cc.png|height=32,width=32!
 
[<span style="color: #0000ee"><span style="text-decoration: underline; ">Show Contents List</span></span>|../../index.htm#lansa/lansa050_1580.htm]