Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 2.18 KB

File metadata and controls

64 lines (52 loc) · 2.18 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Debug.writeln Function (JavaScript) | Microsoft Docs
01/18/2017
windows-client-threshold
devlang-javascript
language-reference
writeln
JavaScript
TypeScript
DHTML
writeIn method
c3aad0cd-0486-4161-9ba6-31d672da72af
17
mikejo5000
mikejo
ghogen

Debug.writeln Function (JavaScript)

Sends strings to the script debugger, followed by a newline character.

Syntax

  
Debug.writeln([str1 [, str2 [, ... [, strN]]]])  

Parameters

str1, str2, ... , strN
Optional. Strings to send to the script debugger.

Remarks

The Debug.writeln function sends strings, followed by a newline character, to the Immediate window of the Microsoft Script Debugger at run time. If the script is not being debugged, the Debug.writeln function has no effect.

The Debug.writeln function is almost identical to the Debug.write function. The only difference is that the Debug.write function does not send a newline character after sending the strings.

Example

This example uses the Debug.writeln function 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.

Internet Explorer 8 includes the [!INCLUDEjavascript] debugger. If you are using an earlier version of Internet Explorer, see How to: Enable and Start Script Debugging from Internet Explorer.

var counter = 42;  
Debug.writeln("The value of counter is " + counter);  

Requirements

[!INCLUDEjsv3]

Applies To: Debug Object

See Also

Debug.write Function