Debug Object (JScript 5.6) 

An intrinsic global object that can send output to a script debugger, such as the Microsoft Script Debugger.


Debug.method

Remarks

The Debug object cannot be created directly, but it is always available for use.

The write and writeln methods of the Debug object display strings in the Immediate window of the Microsoft Script Debugger at run time. If the script is not being debugged, the methods have no effect.

Example

This example uses the write method to display the value of the variable in the Immediate window of the Microsoft Script Debugger.

Note

To run this example, you must have a script debugger installed and the script must run in debug mode. For more information, search MSDN (https://msdn.microsoft.com) for the title "Introducing Microsoft Script Debugger".

var counter = 42;

Debug.write("The value of counter is " + counter);

Properties

The Debug object has no properties.

Methods

write Method (JScript 5.6) | writeln Method

Requirements

Version 3

See Also

Reference

debugger Statement (JScript 5.6)