ScriptContext.Echo Method
When called in a response, this method writes messages to a text file for debugging purposes.
ScriptContext.Echo(newVal As String)
Parameters
- newVal
The message to write.
Remarks
To enable tracing on the computer running the response, see Enabling Tracing.
Trace output from all scripts and managed code responses that use the Echo method will be visible in the log file. To make it easier to locate your entries in the file, you should prefix each message with the name of the script or assembly, as well as a time stamp.
When this object is running in the context of a MOM task, rather than a response script, the Echo method also writes the message to the task's event.
Requirements
Platforms: Requires Windows 2000 or later
Version: Requires MOM 2005 or later
See Also
ScriptContext Object | Enabling Tracing | Debugging Scripts with Microsoft Visual Studio .NET