Adding Debugging Messages to Scripts
You can quickly and easily insert debugging messages into scripts to display output information for reviewing what your script is doing.
When writing a script in the Script Editor's Code View tab, you can add a debugging message by following these steps:
- Place the cursor in the script where you want to add the debug messages.
- Click the Debug Message icon . This opens the Insert Debug Message dialog box.
- Type the message in the Custom Message box.
- Choose any of the Local Variables whose output you want included in the debug message.
- Click OK. A MessageBox.Show("", "Debug Message") line is added to the script with the text and local variables inserted into the syntax.
See also:
Scripting Basics