Debug XQuery Program

后端 未结 3 934
一个人的身影
一个人的身影 2021-02-19 04:19

In the beginning, I wrote a little XQuery script that was designed to do a small task and only that. Now it came out that this XQuery script is anything but complete, and I have

3条回答
  •  野的像风
    2021-02-19 05:13

    As Dimitre suggested, trace() is what I fall back on when nothing else works. Messy but it works.

    Instead of: $foo := anyXqueryExpression

    Do this: $foo := trace(anyXqueryExpression, "text")

    Logs the result of executing anyXqueryExpression and adds the prefix "text".

提交回复
热议问题