Loading TOC...

MarkLogic Server 11.0 Product Documentation
dbg:value

dbg:value(
   $request as xs:unsignedLong,
   [$expr as xs:string]
) as item()*

Summary

Evaluate an expression in the context of the identified stopped request. If no expression is given and the request is stopped at the end of an expression, then the expression's value is returned.

Parameters
request Request ID.
expr Expression string.

Required Privileges

http://marklogic.com/xdmp/privileges/debug-my-requests or http://marklogic.com/xdmp/privileges/debug-any-requests

Example

  dbg:value(13334971433974783708, "$var")
  => 5
  where 5 is the value of the $var variable for the stopped request
  

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