Steps in a Typical Debugging Process
To debug a stylesheet or XQuery document, follow this procedure:
- Open the source XML document and the XSLT/XQuery document.
- If you are in the Editor perspective, switch to the XSLT Debugger or XQuery Debugger
                  perspective with one of the following actions:- Select  or the  XSLT
                           Debugger/ XSLT
                           Debugger/ XQuery
                           Debugger button in the top-right corner of the
                        interface. XQuery
                           Debugger button in the top-right corner of the
                        interface.
- Select  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. 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.
 
- Select  or the 
- 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.
- Select the XSLT/XQuery document in the XSLT/XQuery selector of the Control toolbar.
- Set XSLT/XQuery parameters from the button available on the Control toolbar.
- Set one or more breakpoints.
- Step through the stylesheet using the following buttons available on the Control toolbar:
- Examine the information in the information views to find the bug in the transformation
                  process.You may find the procedure for determining the XSLT template/XQuery element that generated an output section useful for fixing bugs in the transformation.
 
           Step
                        into
Step
                        into Step
                        over
Step
                        over Step
                        out
Step
                        out Run
Run Run to
                        cursor
Run to
                        cursor Run to
                        end
Run to
                        end Pause
Pause Stop
Stop