History | Edit

Depending on your situation and needs, the debugging process might be more complex, but the following procedure is an example of a typical debugging process:

  1. Open the source XML document and the XSLT/XQuery document.
  2. If you are in the Editor perspective, switch to the XSLT Debugger or XQuery Debugger perspective with one of the following actions:
    • Select Window > Open perspective > XSLT Debugger/XQuery Debugger or the XSLT Debugger/ XQuery Debugger button in the top-right corner of the interface.
    • Select Document > XML Document > Debug scenario or use the Debug scenario action on the toolbar.. This action initializes the Debugger perspective with the parameters of the transformation scenario. Any modification applied to the scenario parameters (the transformer engine, XSLT parameters, transformer extensions, etc.) will be saved back in the scenario when exiting from the Debugger perspective.
  3. Select the source XML document in the XML source selector of the Control toolbar. In the case of XQuery debugging, if your XQuery document has no implicit source, set the source selector value to NONE.
  4. Select the XSLT/XQuery document in the XSL/XQuery selector of the Control toolbar.
  5. Set XSLT/XQuery parameters using the Configure parameters button on the Control toolbar.
  6. Set one or more breakpoints.
  7. Step through the stylesheet using the following buttons available on the Control toolbar:
    • Step into
    • Step over
    • Step out
    • Run
    • Run to cursor
    • Run to end
    • Pause
    • Stop
  8. Examine the data in the information views to find the bug in the transformation process.
    For more information about fixing bugs in the transformation, see: Identify the XSLT / XQuery Expression that Generated Particular Output.