开发者

trace xquery variables

i am working with BEA (now called Oracle Service Bus Worskshop) xquery and I am trying 开发者_运维技巧to figure out a way to simply debug my code. Something like "echo" in bash or System.out() in Java. The Workshop IDE (Eclipse) has a built in tool to test the all xquery file, returning the final output.

Any idea?

Thanks in advance


you could try the trace function (http://www.w3.org/TR/2009/WD-xpath-functions-11-20091215/#func-trace).

For example:

for $x in (1 to 3)
return trace($x, "I'm tracing x")

should log each value of $x somewhere and returns exactly the same result as:

for $x in (1 to 3)
return $x

Yet, I neither know if this is supported in Oracles implementation nor where it might log the traced values.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜