Last Updated: February 25, 2016
·
917
· tommica

Umbraco var_dump/print_r

<umbraco:Macro runat="server" language="cshtml">
    @{
        var node = new umbraco.NodeFactory.Node(Model.Id);
        var serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
    }

    <script>
        window.varDump = @Html.Raw(serializer.Serialize(node.Properties))
    </script>
</umbraco:Macro>