Page 1 of 1

Breakpoints not working in included files

Posted: Wed Aug 15, 2018 6:51 pm
by mark2457
I'm sure this used to work , but hasn;t worked fro at least the last few major releases (19+)

I have XSLT's included in the main file: <xsl:include href="Helpers.xsl"/>

Doesn't matter where I put breakpoints in the Helpers.xsl, the debugger never stops (even if I have already stepped into the file)

This is making the debugger unuseable and is the main reason I use OxygenXML

Re: Breakpoints not working in included files

Posted: Thu Aug 16, 2018 8:56 am
by Radu
Hi Mark,

Here's what I tested on my side:

1) Created an XML document:

Code: Select all

<root>
<child></child>
</root>
2) Created a "main.xsl":

Code: Select all

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:include href="Helpers.xsl"/>
<xsl:template match="/">
<root2>
<xsl:apply-templates/>
</root2>
</xsl:template>
</xsl:stylesheet>
3) Created a "Helpers.xsl" next to the "main.xsl":

Code: Select all


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:template match="child">
<someTag></someTag>
</xsl:template>
</xsl:stylesheet>
I created an XSLT transformation scenario in Oxygen for the "test.xml" with the "main.xsl" using Saxon 9 PE.
I used the "Debug Scenario" toolbar action and in the Debugger perspective I added a breakpoint inside the Helpers.xsl at the "<someTag>" line (line 7). I used the "Run (Shift F5)" toolbar action and the debugger stopped at that line.

Maybe you could try to also write on your side a minimal set of XML + XSLT example with which you can reproduce the problem on your side and either post it on this forum thread or send it to us (support@oxygenxml.com).

Regards,
Radu