Show TOC

 Creating Breakpoints in XSLT ProgramsLocate this document in the navigation structure

Use

You use breakpoints to stop the execution of an XSL transformation immediately before a specific statement is called.

Prerequisites
  • You can set breakpoints only in the source code of an XSLT program, not in an XML document.
  • You can set breakpoints only for executable statements. Examples of non-executable statements are:
    • End tags (for example: </table>)
    • Top-level statements (for example: <xsl:template ... />). Top-level attributes are an exception.
Procedure

Creating Line Breakpoints

In the Transformation Editor, you can set a line breakpoint both in change mode and in display mode:

  1. In the Object Navigator (transaction SE80), open the XSLT program you want to examine.

    The Transformation Editor starts.

  2. Position the cursor on the line in the source code where you want to set the breakpoint.
  3. In the application toolbar, choose  with the quick info text Set Breakpoint.

To set a line breakpoint in the XSLT debugger, proceed as follows:

  1. Position the cursor on the line in the XSL source code where you want to set the breakpoint.
  2. Double-click the selected line or, in the application toolbar, choose  with the quick info text Set Breakpoint.

If the selected line contains a non-executable statement, the breakpoint is automatically set on the next executable line. The new line breakpoint is included in the breakpoint list. If you double-click on a line that already contains a breakpoint, the system deletes the breakpoint.

Creating Template Breakpoints

You can stop the execution of the XML transformation at a particular template in an XSLT program.

  1. In the XSLT Editor, choose Utilities → Set/Delete Breakpoint.
  2. Choose the Template radio button.
  3. In the Template input field, enter the name of the template.
  4. Choose Continue.

If your entries are correct, the new breakpoint is added to the breakpoint list. Unlike line breakpoints, template breakpoints are not highlighted.

Creating Program Breakpoints

Program breakpoints allow you to start the debugger directly when you start the XSLT program.

  1. In the XSLT Editor, choose Utilities → Set/Delete Breakpoint.
  2. Choose the Program Breakpoint radio button.
  3. Choose Continue.

See also:

Saving Breakpoints

Deleting Breakpoints