dbg:stack( $request as xs:unsignedLong ) as element(dbg:stack)
Return the stack trace for a given request.
Parameters | |
---|---|
request | Request ID. |
dbg:stack(204928402983) => <stack xmlns="http://marklogic.com/xdmp/debug"> <expr> <expr-id>16429173930674134530</expr-id> <expr-source>xdmp:sleep(1000)</expr-source> <uri>/long.xqy</uri> <line>11</line> </expr> <frame> <uri>/long.xqy</uri> <line>11</line> <operation>fn:sleep(18)</operation> <variables> <variable> <name xmlns="">x</name> <value>18</value> </variable> </variables> </frame> <frame> <uri>/long.xqy</uri> <line>18</line> <operation>fn:foo(18)</operation> <variables> <variable> <name xmlns="">x</name> <value>18</value> </variable></variables> </frame><frame> <uri>/long.xqy</uri> <line>26</line> <operation>fn:bar()</operation> <variables><variable> <name xmlns="">x</name> <value>18</value> </variable> </variables> </frame> <frame> <uri>/long.xqy</uri> <line>29</line> </frame> </stack>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.