Idoc Script Reference Guide PDF

Idoc Script Index > trace


trace

Type and Usage

Description

Enables logging a debug or trace message to the ScriptDebugTrace output. A message can also be output to the console or to the system logs.

Parameters

Takes one required and two optional parameters:

Example

The following example logs the string message to the system console, which is always logged:

<$trace(“message”, “#console”)$>

The following example logs the string message to the system console in the pagecreation tracing section.

<$trace(“message”, “#console”, “pagecreation”)$>

The following example logs the string message to the HTML content server log file.

<$trace(“message”, “#log”)$>

The following example dumps all local variables and their values to the system console.

<$trace(“#local”, “#console”)$>

The following example dumps all local variables, result sets, and environment variables to the system console.

<$trace(“#all”, “#console”)$>

The following example dumps all data to the variable MyTraceDump, which can then be displayed on the page. This is useful for HCSP developers who may not have the appropriate access rights to view the console logs.

<$trace(“#all”, “MyTraceDump”)$>

<$MyTraceDump$>


Copyright © 1996, 2007, Oracle. All rights reserved.