Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-incubator-dev] Breakpoints on XML files

DOUG SATCHWELL wrote:
OK - I've added it...but I'm not sure how to make use of it!

Breakpoints on the stylesheet are simple - just listen to trace events and we are guaranteed to hit every node in the stylesheet and therefore all breakpoints in the stylesheet.

But trace events are not fired for every node in the _source_ document, so breakpoints on source nodes will frequently be missed...not sure how to solve this one??
I don't think there is a trivially correct answer to this question, like there is for template breakpoints, so I guess we'd have to think about what the user might expect, which I guess is one of several possibilities:

Q: When is an XML input breakpoint hit?

A1: When the element it represents is the selected node in a template match or invocation.
A2: ... or the "current node" in an for-each.
A3. ... or used in any XPath _expression_.
A3.consequence: Including whenever control/selection is transferrered into a child of the node

Does this make sense, and is it possible?

.Jesper

----- Original Message ----
From: Jesper Steen Møller <jesper@xxxxxxxxxxxxx>
To: WTP Incubator Dev list <wtp-incubator-dev@xxxxxxxxxxx>
Sent: Monday, 4 February, 2008 9:48:13 PM
Subject: Re: [wtp-incubator-dev] Breakpoints on XML files

DOUG SATCHWELL wrote:
> I can quite easily add the ability to put breakpoints onto source XML
> files. There is one potential dilemma though - how does the user know
> what _kind_ of breakpoint is on the file?
>
> For instance, what if a different language (Ant?) were to allow users
> to add breakpoints to XML files too. Is there some way to
> differentiate between the 2 sorts of breakpoint? Obviously, only XSL
> breakpoints will work for XSL debugging.
A line can have multiple markers in the leftmost column. If you hover
over the breakpoint, a tooltip text will explain the icons mushed
together underneath.
I assume you will need a different action for setting XML breakpoints?
> Has anyone got any thoughts on this, or shall I just go ahead and
> allow breakpoints to be added to XML files anyway?
Please, please - go ahead.

-Jesper

_______________________________________________
wtp-incubator-dev mailing list
wtp-incubator-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-incubator-dev


_______________________________________________ wtp-incubator-dev mailing list wtp-incubator-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/wtp-incubator-dev


Back to the top