An intrinsic global object that can send output to a script debugger, such as the Microsoft Script Debugger.
This example uses the write function 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.
var counter = 42; Debug.write("The value of counter is " + counter);
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.