<%@ page language="C#" masterpagefile="~/templates/Documentation.master" inherits="Page" pagetitle="Steps for Debugging Stylesheets" keywords="Steps for Debugging Stylesheets"%>

Steps for Debugging Stylesheets

Stylus Studio provides tools for debugging transformations.

To debug a stylesheet:
1. Open a stylesheet.
2. Set up a scenario or select the scenario you want to use. See Applying Stylesheets.
3. Set one or more breakpoints. See Using Breakpoints.
4. Apply the stylesheet by pressing F5, not clicking Preview Result. If you click Preview Result, Stylus Studio applies the stylesheet without invoking the debugger.
5. Examine the information in the debugging tools and in the Preview window.
6. Run and examine the information XSLT Profiler report.
7. Iteratively step through the stylesheet or program and examine the information in the debugging tools.

You can include msxml:script elements in XML documents in Stylus Studio. The msxml prefix must indicate the Microsoft urn:schemas-microsoft-com:xslt namespace.

The following sections provide the details for performing each of these steps.