[Contents] [Previous] [Next] [Index]

debug

Displays a JavaScript expression in the trace facility.

Server-side function

Implemented in

LiveWire 1.0

Syntax

debug(expression)

Parameters

expression
Any valid JavaScript expression.

Description

The debug function is a top-level server-side JavaScript function that is not associated with any object.

Use this function to display the value of an expression for debugging purposes. The value is displayed in the trace facility of the Application Manager following the brief description "Debug message:".

Examples

The following example displays the value of the variable data:

debug("The final value of data is " + data)


[Contents] [Previous] [Next] [Index]

Last Updated: 10/31/97 16:38:00


Copyright © 1997 Netscape Communications Corporation