Child pages
  • XSLT-Debugger

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The XSLT-Debugger plugin allows to debug XSLT stylesheets in IntelliJ IDEA with various useful features a debugger should have, including breakpoints, watch expressions, variables display, etc. It is tightly integrated with IDEA which allows it to be effectively efficiently used without much need to familiarize first.

Note
titleRequirement

The plugin requires the "XPathView + XSLT-Support" plugin. Unfortunately, IDEA doesn't automatically install it, so this has to be done manually.

Features

Here's The following sections contain a list of the major features that are provided by the XSLT-Debugger which are designed to greatly ease debugging that help to develop and debug XSLT stylesheets in IntelliJ IDEA : Develop with Pleasurepleasure.


Anchor
breakpoints
breakpoints

...

Breakpoints are the major feature of any debugger, and so they are for the XSLT-Debugger. Breakpoints can be set in any XSLT file with the same keyboard shortcut to set breakpoints in Java classes, by clicking on the left editor gutter, or by invoking the action "Toggle Line Breakpoint" from the "Run" menu.

Breakpoints in XSLT files are decorated with a little "gear" icon and behave pretty much the same as breakpoints for Java classes or other languages (e.g. Groovy) that can be debugged in IDEA: They can be enabled and disabled, and it's also possible to configure various properties that control the behavior of a breakpoint.

Anchor
breakpoint_properties
breakpoint_properties

...

Properties of XSLT breakpoints can be configured by either right-clicking the breakpoint-icon in the left editor gutter or by opening the breakpoints dialog via Run | View Breakpoints from the main menu. This allows to manage the following properties.

...

When the debugged process is finished, the output can be opened in an IDEA editor by clicking the "Open in Editor" action in the toolbar of the output console.

Anchor
structure
structure

...

Section
Column
width5%

Column
width1

(tick)

Column

The first step is to create a Run Configuration for the stylesheet that should be debugged. This can be done either by creating a new configuration from scratch via "Run | Edit Configurations" action from the main menu, or by right-clicking an XSLT file an choosing "Create 'xyz.xsl' ...". This is also the place where the XML input file that should be transformed is selected.

...

Section
Column
width5%

Column
width1

(tick)

Column

Now the debugger can be started in the usual way by clicking the "Debug"-icon in the main toolbar or by invoking the action "Run | RunDebug" from the main menu.

Section
Column
width5%

Column
width1

(tick)

Column

If the stylesheet is valid and can be loaded by the XSLT processor, the view in the "Debug" toolwindow will switch from the regular output console to the "XSLT Debugger" tab.

...

Section
Column
width5%

Column
width1

(tick)

Column

When you're done with inspecting the current position, you can either resume the execution continue debugging in single-stepping mode with the "Step Over" or "Step Into" actions. See the chapter Execution Control for more information.

...

The plugin is available for IntelliJ IDEA DEA 7.0 via the built-in plugin manager and at the IntelliJ Plugin Repository.

...