一开始,我编写了一个小 XQuery 脚本,旨在完成一项小任务,而且仅此而已。现在发现这个 XQuery 脚本并不完整,我必须修复它。问题是,我的 XQuery 演变成一个程序,而 XQuery 是一个痛苦的调试。我需要的东西是:
在命令行打印一些东西来检查程序当时是否有正确的节点。
显示存储变量的调试工具
最佳答案
Something that I would need would be:
print something to the command line to check weather the progroms has the correct nodes at that time.
使用标准 XPath 2.0 函数
trace()
. a debugging tool that shows me the stored variables
有各种 XQuery IDE 带有调试器。例如,看看 oXygen .
关于debugging - 调试 XQuery 程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4830288/