Copied to clipboard

Flag this post as spam?

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


  • stevo 63 posts 106 karma points
    May 06, 2010 @ 10:45
    stevo
    0

    debugging xslt in Visual Studio 2010

    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

    Note: i use the Visual Studio 2010 Premium (RTM)

  • Josh 9 posts 29 karma points
    Jul 16, 2010 @ 01:25
    Josh
    0

    Has anyone figured out how to do this out?

    I tried creating a new ASP .Net Web Application, adding the XSLT files, compiling, adding the .dll to my /bin, then attaching to process.

    The symbols never seem to load.

    Has anyone figured out how to debug XSLT in Visual Studio 2010?

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jul 16, 2010 @ 01:30
    Aaron Powell
    0

    I heard that the XSLT debugger in VS2010 has bugs in it and doesn't work right. I haven't managed to get it to work myself

  • Paul Blair 466 posts 731 karma points
    Jul 16, 2010 @ 05:28
    Paul Blair
    1

    I have been debuggin XSLT in 2010 and don't think I did anything special to set it up.

    Are you running 2010 as an Administrator?

  • Josh 9 posts 29 karma points
    Jul 16, 2010 @ 16:17
    Josh
    0

    YES!! IT WORKS!

     

    Thanks Paul for the info. Turns out you have to right-click Visual Studio, "Run as Administrator"

    Sweeeeeeeeet. I can now debug my XSLT in Visual Studio 2010!

  • Josh 9 posts 29 karma points
    Jul 16, 2010 @ 21:49
    Josh
    0

     

    So I was all pumped up to start debugging my XSLT code, but then ran into a snag. Like slace mentioned above, XSLT debugging in VS 2010 is messed up. The values don't show when you trace through, and it usually crashed.

    I went back to the drawing board and installed Visual Studio 2008. What do you know? It works perfectly. This is just a heads up to anyone else experiencing the same problem.

    Here is a screenshot of it working in VS 2008:

     

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Jul 17, 2010 @ 09:35
    Sebastiaan Janssen
    0

    I have no problem using it in VS2010, so some of your settings must be whacky. 

    You could have a look at my set-up (it applies to VS2010 as well, even though the screenshots are from VS2008) and see if you get better results implementing some of that.

  • Josh 9 posts 29 karma points
    Jul 17, 2010 @ 16:02
    Josh
    0

    Sebastiaan,

    Good writeup man. Just to clarify, in this thread we are talking about XSLT.

    User controls (C# or VB) work great in 2010.

    -Josh

     

     

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Jul 17, 2010 @ 16:04
    Sebastiaan Janssen
    0

    Thanks! I did mention that blog post specifically as in that set-up, the XSLT debugging works perfectly as well. I am logged in as a user with Admin rights, that may or may not make a difference.

Please Sign in or register to post replies

Write your reply to:

Draft