XQuery Debugger
Posted: Wed Aug 24, 2016 12:47 pm
Hi,
I'm just evaluating oxygen and I like it a lot, but I'm struggling with the debugger.
First of all when I step through the code, it jumps around wildly. I understand, that XQuery is not a imperative language, but why arent't for example even successive let-clauses processed in order...? Also it's not clear when a variable value is available.
For example this code
About breakpoints:
Is it possible, that conditional breakpoints do not work in version 18?
eg I set a breakpoint at XXX and set condition to false() or 0 its always hit nevertheless.
When I select conditional only, it seems like the breakpoint is removed from the line and hits always when the condition is met - not what I want.
And a last question: how can I use trace() and error()?
Where are the trace() messages output?
How can I access the node that error() gets as an argument?
Thank you!
I'm just evaluating oxygen and I like it a lot, but I'm struggling with the debugger.
First of all when I step through the code, it jumps around wildly. I understand, that XQuery is not a imperative language, but why arent't for example even successive let-clauses processed in order...? Also it's not clear when a variable value is available.
For example this code
Code: Select all
let $foo := ...
let $bar := ...
return
XXX (:when I'm here $foo or $bar may be unavailable, why? - in XWatch they are!)
Is it possible, that conditional breakpoints do not work in version 18?
eg I set a breakpoint at XXX and set condition to false() or 0 its always hit nevertheless.
When I select conditional only, it seems like the breakpoint is removed from the line and hits always when the condition is met - not what I want.
And a last question: how can I use trace() and error()?
Where are the trace() messages output?
How can I access the node that error() gets as an argument?
Thank you!