Loading TOC...

xdmp.traceEnabled

xdmp.traceEnabled(
   $name as String
) as Boolean

Summary

Returns whether or not a trace event is enabled.

Parameters
$name The trace event name.

Example

const query = cts.wordQuery('hello');
if (xdmp.traceEnabled("JSearch Query")) {
  console.debug(query)
}

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.