The debug statement creates a dialog box that displays the specified string. The dialog box will have one button labeled OK.
• string_expression – A string containing the message that will appear in the dialog box.
Debug messages will be displayed in test mode when Show Debug Messages under the Debug menu is marked. If this option isn’t selected, the debug messages won’t be displayed. Debug messages are never displayed when the application dictionary is used with the runtime engine.
Debug messages are useful in tracking the progress of a script while locating problems. They allow you to ascertain exactly which command in a script has been run when an event occurs.
Don’t use the debug statement in a window activate script. The application will become suspended in an infinite loop.