Copied to clipboard

Flag this post as spam?

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


  • John 88 posts 112 karma points
    Aug 23, 2011 @ 02:24
    John
    0

    Macro and .NET tracing

    Hi, I'm rendering a macro myself (using Server.Execute) the reason why isn't really important here. My issue is that while this works and spits out the HTML as desired it also includes the .NET tracing output even though umbDebugShowTrace isn't specified in the querystring.

    Is there somewhere else this is specified in the Macro?

    Cheers

  • John 88 posts 112 karma points
    Aug 23, 2011 @ 04:33
    John
    0

    Nevermind, the issue is that tracing is enabled in the web.config and Umbraco must then enable/disable it at the page level based on the umbDebug query string values where-as I was simply creating a System.Web.UI.Page for my control rendering. I solved this by performing a similar check to Umbraco:

    pageHolder.Trace.IsEnabled = (!String.IsNullOrEmpty(context.Request["umbDebugShowTrace"]) && GlobalSettings.DebugMode);
    context.Server.Execute(pageHolder, result, true);

     

Please Sign in or register to post replies

Write your reply to:

Draft