Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Maton 387 posts 660 karma points
    Oct 29, 2009 @ 18:10
    Tom Maton
    0

    Debugging xslt

    Hi All,

    I'm just wondering if anyone can help me out.

    I am trying to debug some XSLT as I am having a problem with a rather large XSLT file and not sure where the problem is happening so wondering if its possible to debug and get the values of items like you can in Visual Studio debugging.

    Thanks in advance

    Tom

     

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Oct 29, 2009 @ 18:31
    Chris Houston
    1

    Hi Tom,

    Yes it is possible. As long as you have a copy of your XSLT files in your visual studio project file, you can either use the "attach process" to attach to an IIS process, or what I do is in the properties of your web project ( in the web section ) I just set the option to "use custom web server" and I put in the name of my local site ( running on my PC )

    You can then set break points in your XSLT file in just the same way as you do for any other code, click run and use your faviourite browser to browser to the page where your XSLT appears and then low and behold you should be able to step through your XSLT :)

    Cheers,

    Chris

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Oct 29, 2009 @ 19:17
    Lee Kelleher
    0

    Important to note that the XSLT debugging in Visual Studio only works in the Professional edition (or above).  It doesn't work in Standard edition - same goes for XSLT intellisense! ;-(

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Oct 29, 2009 @ 19:44
    Dirk De Grave
    1

    I've done a short how-to here.

     

    Cheers,

    /Dirk

  • stevo 63 posts 106 karma points
    May 04, 2010 @ 13:06
    stevo
    0

    Hello,
    today in found this really awesome XSLT debugging article from Dirk! Thx a lot Dirk for sharing!
    But it dosn't work with Visual Studio 2010.
    For example there is no access to the $currentPage node.

    Has anyone figured out a solution?

    Thx a lot!

    Stevo

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jun 22, 2010 @ 09:48
    Jeroen Breuer
    0

    I've got the same problem. I upgraded to VS2010 and now debugging XSLT files doesn't work anymore. The breakpoint never get's hit. Any suggestions?

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jun 22, 2010 @ 13:43
    Jeroen Breuer
    0

    I've just installed VS2008 and I can't seem to debug XSLT in VS2008 aswell. I also upgraded to Windows 7. Could this cause any problems?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jun 23, 2010 @ 02:43
    Sebastiaan Janssen
    0

    Jeroen: It works for me in 2008/2010 in the set-up that I've described on my blog. Hope it helps you out..

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jun 23, 2010 @ 09:03
    Jeroen Breuer
    0

    @Sebastiaan Thanks for the tip, but your sample is for debugging user controls. Debugging user controls works fine, but I can't debug XSLT files.

     

     

  • Johannes Döring 4 posts 25 karma points
    Jun 24, 2010 @ 23:02
    Johannes Döring
    1

    Warren just showed the debugging @ Codegarden 2010 here in Copenhagen. You could be here and watch the XSLT vs LinQ match as well, it was very funny!

    I guess there is also a video at Umbraco TV about debugging.

     

    Codegarden Rocks!

     

  • Nate 143 posts 184 karma points
    Jul 01, 2010 @ 23:28
    Nate
    0

    What was the outcome of XSLT vs LINQ?  I'm guessing XSLT was much faster?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 03, 2010 @ 13:19
    Lee Kelleher
    0

    LINQ vs XSLT (the grudge match) was a draw - although I'm sure both parties disagree with that! ;-)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 03, 2010 @ 13:49
    Jan Skovgaard
    0

    I think the morale was that Umbraco provides you with different tools to get the job done and you can do it in many different way. It really showed that Umbraco is flexible in many different ways.

Please Sign in or register to post replies

Write your reply to:

Draft