views:

9

answers:

0

I'm using Visual Studio to debug a transform. If I am viewing the transform and select XML > Start XSLT Debugging, VS automatically opens the output file and as I step through the transform I can observe the output being written.

In my case however, because the transform is performed by an application that first sets some parameters, I am instead entering the XSLT debugger using the following code:

XslCompiledTransform xslTransform = new XslCompiledTransform(true); // enableDebug
XmlUrlResolver urlResolver = new XmlUrlResolver();
XsltSettings xsltSettings = new XsltSettings(true, true);
XsltArgumentList transformArgumentList = new XsltArgumentList();
// some arguments are set here
xslTransform.Load(transformFilePath, xsltSettings, urlResolver);             
using (XmlWriter writer = XmlWriter.Create(outputFilePath))
{
    xslTransform.Transform(inputFile, transformArgumentList, writer, urlResolver);
}

A breakpoint is set on the call to Transform. After starting the debugger, it breaks on Transform as expected. When I use F11 / Debug > Step Into, I enter the XSLT file and can step through it, but I cannot see its output.

Is there an option that I need to set in order to view the output as it is written, like in the former mode?