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:

  1. Place the cursor in the script where you want to add the debug messages.
  2. Click the Debug Message icon . This opens the Insert Debug Message dialog box.
  3. Type the message in the Custom Message box.
  4. Choose any of the Local Variables whose output you want included in the debug message.
  5. 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