x First time here? Check out the FAQ

How-tos

    The How-tos section contains useful guides how to use specific functionality within Umbraco.

    Quick Tips

     

    How to show the Trace window

    Append umbDebugShowTrace=true to the URL as a query string parameter like so:

    http://localhost/my-page.aspx?umbDebugShowTrace=true

    You can also use this following bookmarklet (drag the link to your bookmarks bar to use it).

    Bookmarklet source:

    javascript:var s=document.location.search;var r=/(?:\?|&)umbDebugShowTrace=true/;if(r.test(s)){s=s.replace(r,"").replace(/^&/,'?');}else{s=s+(s.length>0?'&':'?')+'umbDebugShowTrace=true';}document.location.search=s;
    

    How to find the problem of a non-rendering .NET Macro

    Navigate to the Umbraco backend (/umbraco/) and then locate the macro (Developer -> Macros -> Macro Name).

    Click on the Browse Properties button, this popup window will show the stack trace which is causing the error.

    How to add info lines to the trace

    Add the following line in your razor file to add an extra info row to the trace - useful for performance issues and debugging with live data.

    HttpContext.Current.Trace.Write("some info");