Page 1 of 1

Breakpoint in include file!?

Posted: Thu May 12, 2016 11:37 am
by ruperthawkes
Hi,

I am using XML Developer 16.1 and setting a breakpoint in an include XLST file. But the debugger doesn't stop at the breakpoint.

Any ideas? Ta.

Re: Breakpoint in include file!?

Posted: Thu May 12, 2016 5:20 pm
by Costin
Hello,

Please note that the breakpoints you set in the debugger are in direct relation with the processor you are using (by default, that is Saxon). Given this, you should make sure that you are setting the breakpoints in valid locations. If a breakpoint is set in a location where Saxon is not supposed to stop, then the respective breakpoint will be ignored.
For instance, if you have some breakpoints set on empty or commented lines or the lines are not reached by the processor, then the debugger won't stop at them.

Besides this, there are also optimizations performed by the Saxon engine of the source code and the breakpoints which were set on optimized locations are not considered.

For Saxon-EE/PE/HE this can be resolved by decreasing the optimization level to 0. This can be adjusted in Options -> Preferences -> XML -> XSLT-FO-XQuery -> XSLT -> Saxon -> Saxon-HE/PE/EE (the "optimization level" option).

Regards,
Costin