Commands and Toolbar Icons
Debugger commands are available in the XSL/XQuery menu and as toolbar icons. The debugger icons are automatically made available in the toolbar when a debugging session is opened. These icons are listed below.
Start Debugger/Go (Alt+F11)
Starts or continues processing the XSLT/XQuery document till the end. If breakpoints have been set, then processing will pause at that point. If the debugger session has not been started, then this button will start the session and stop at the first node to be processed. If the session is running, then the XSLT/XQuery document will be processed to the end, or until the next breakpoint is encountered. If tracepoints have been set, the value of the instruction for which the tracepoint was set is displayed in the Trace window when that instruction is reached.
View the active document only
Maximizes the window of the currently active document in the Debugger interface.
View XSLT/XQuery and Output
Displays the XSLT and Output documents in their windows, while hiding the XML document.
View XML, XSLT/XQuery and Output
Displays the XML, XSLT/XQuery, and Output documents. This is the default view when an XML document is associated for the debugging session.
Stops the debugger. This is not the same as stopping the debugger session in which the debugger is running. This is convenient if you wish to edit a document in the middle of a debugging session or to use alternative files within the same debugging session. After stopping the debugger, you must restart the debugger to start from the beginning of the XSLT/XQuery document.
Step into (F11)
Proceeds in single steps through all nodes and XPath expressions in the stylesheet. This command is also used to re-start the debugger after it has been stopped.
Step Over (Ctrl+F11)
Steps over the current node to the next node at the same level, or to the next node at the next higher level from that of the current node. This command is also used to re-start the debugger after it has been stopped.
Step Out (Shift+F11)
Steps out of the current node to the next sibling of the parent node, or to the next node at the next higher level from that of the parent node.
Show current execution node
Displays/selects the current execution node in the XSLT/XQuery document and the corresponding context node in the XML document. This is useful when you have clicked in other tabs which show or mark specific code in the XSLT stylesheet or XML file, and you want to return to where you were before you did this.
Clears the output window and restarts the debugging session with the currently selected files.
Insert/Remove Breakpoint (F9)
Inserts or removes a breakpoint at the current cursor position. Inline breakpoints can be defined for nodes in both the XSLT/XQuery and XML documents, and determine where the processing should pause. A dashed red line appears above the node when you set a breakpoint. Breakpoints cannot be defined on closing nodes, and breakpoints on attributes in XSLT documents will be ignored. This command is also available by right-clicking at the breakpoint location.
Insert/Remove Tracepoint (Shift+F9)
Inserts or removes a tracepoint at the current cursor position. Inline tracepoints can be defined for nodes in XSLT documents. During debugging, when a statement with a tracepoint is reached, the result of that statement is output in the Trace window. A dashed blue line appears above the node when you set a tracepoint. Tracepoints cannot be defined on closing nodes. This command is also available by right-clicking at the tracepoint location.
Enable/Disable Breakpoint (CTRL+F9)
This command (no toolbar icon exists) enables or disables already defined breakpoints. The red breakpoint highlight turns to gray when a breakpoint is disabled. The debugger does not stop at disabled breakpoints. To disable/enable a breakpoint, place the cursor in that node name and click the Enable/Disable Breakpoint command. This command is also available by right-clicking at the breakpoint location.
Enable/Disable Tracepoint (Shift+CTRL+F9)
This command (no toolbar icon exists) enables or disables already defined tracepoints. The blue tracepoint highlight turns to gray when a tracepoint is disabled. No output is made in the Trace window for disabled tracepoints. To disable/enable a tracepoint, place the cursor in that node name and click the Enable/Disable Tracepoint command. This command is also available by right-clicking at the tracepoint location.
End Debugger Session
Ends the debugging session and returns you to the normal XMLSpy view that was active before you started the debugging session. Whether the output documents that were opened for the debugging session stay open depends on a setting you make in the XSLT/XQuery Debugger Settings dialog.
XSLT Breakpoints / Tracepoints Dialog
This command opens the XSLT/XQuery Breakpoints / Tracepoints dialog, which displays a list of all currently defined breakpoints/tracepoints (including disabled ones) in all files in the current debugging session.
The check boxes indicate whether a breakpoint/tracepoint is enabled (checked) or disabled. You can remove the highlighted breakpoint/tracepoint by clicking the corresponding Remove button and remove all breakpoints or tracepoints by clicking the corresponding Remove All button. The corresponding Edit Code button takes you directly to the selected breakpoint/tracepoint in the file.