MarkLogic Server 11.0 Product Documentation
dbg:stack

dbg:stack(
   $request as xs:unsignedLong
) as element(dbg:stack)

Summary

Return the stack trace for a given request.

Parameters
request Request ID.

Required Privileges

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

Example

  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>
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy