Sends strings to the script debugger.
Debug.Write([str1 [, str2 [, ... [, strN]]]])
- str1, str2, ... , strN
Optional. Strings to send to the script debugger.
The Write method sends strings to the Immediate window of the Microsoft Script Debugger at run time. If the script is not being debugged, the Write method has no effect.
The Write method is almost identical to the WriteLine method. The only difference is that the WriteLine method sends a newline character after the strings are sent.
This example uses the Write method to display the value of the variable in the Immediate window of the Microsoft Script Debugger.
To run this example, you must have a script debugger installed and the script must run in debug mode. For more information, search
Dim counter counter = 42 Debug.Write "The value of counter is " & counter