XslCompiledTransform Отладка XSLTC#

Место общения программистов C#
Ответить
Anonymous
 XslCompiledTransform Отладка XSLT

Сообщение Anonymous »


According to this article I should be able to debug my xslt transform by breakpointing then pressing F11 on the last line of code:

XslCompiledTransform xslt = new(true); xslt.Load(stylesheetUri); FileStream fileWriter = new(outputFile, FileMode.Append); xslt.Transform(inputUri, null, fileWriter); (stylesheetUri, outputFile and inputUri are all constant strings that represent filesystem paths for this example)

If I press F11 on the last line, it just does the transformation and moves to the next line (Same as Stepping over with F10). If I disable "just my code" as per this answer, I just step into the framework's implementation of Transform.

Its worth noting that I have the stylesheet open in VS, and I have breakpoints throughout which trip when I manually start XLST debugging. (XML -> Start XLST Debugging (Alt-F5))

How can I start debugging XLST from a live application as the MS article suggests?

I'm using VS Professional 2022, v17.8.7 if that helps.

Ultimately, what i'd like to solve is that the XSLT debugger produces a different output to compiled transform on the exact same inputs.


Источник: https://stackoverflow.com/questions/781 ... debugginig
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»