overstory / marklogic-intellij-plugin

Plugin to support XQuery + MarkLogic debugging in Intellij Idea
Apache License 2.0
12 stars 2 forks source link

Allow selection of any XQuery expression on a line #29

Open ronhitchens opened 7 years ago

ronhitchens commented 7 years ago

The MarkLogic debugger API breaks on expression IDs. Any given source line may contain several expressions, and individual expressions can span multiple source lines.

The IntelliJ UI allows for setting a breakpoint on a line-basis only. In some cases, re-arranging the source will allow for selecting the desired expression, but not always.

The current design sets a breakpoint on the last expression seen on a line, which is usually the right thing, but makes it effectively impossible to break on entry to a function, for example (as opposed to the first expression inside a function). This is because a function expression occurs on every line of its contained expressions.

It would be useful if a popup could be displayed when setting a breakpoint on a line with multiple expressions that would allow for selecting the desired expression to set the breakpoint on.