Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I was reading in https://umbraco.com/blog/umbraco-81-release/ about the easier access to miniprofiler, but when i add "/?umbDebug=true" to my rule still nothing shows. How do you get miniprofiler to show on the website?
It looks like you just need to toggle the switch in the backoffice -> settings -> Profiling.
Then when you visit a page it has a cookie stored that you want to show the miniprofiler. This will only work when you have debug=true in your web.config.
PR with this amend in
hi - yes i have the backoffice setting ticked, and debug=true in web.config. Do i need to put something in the view file or does it get injected into the page markup automagically? thanks
It should just display the miniprofiler when you go to one of your pages.
The only thing i can think of is that my views are of type MyCustomUmbracoViewPage, not UmbracoViewPage directly. If miniprofiler is looking for the UmbracoViewPage type to inject itself into then there would need to be an alternate way for custom views.
From what I can see, the profiler is setup at boot time and either looks for the cookie called UMB-DEBUG, or a query string parameter umbDebug with a value of true. This will then start the profiler.
You could be right though, if you're using your own ViewPage it doesn't fire. Just out of curiosity, what are you doing? Does it inherit from UmbracoViewPage?
hi - yes,MyCustomUmbracoViewPage<T> : UmbracoViewPage
MyCustomUmbracoViewPage<T> : UmbracoViewPage
Interesting - I can't replicate this not displaying.
I've just created a dummy class to inherit from UmbracoViewPage and use this on my view but the miniprofiler still shows in the top right corner.
Are you doing anything extra in your class?
Can you strip it back to test (I'm now intrigued!) If you just use the UmbracoViewPage<> on your view does the miniprofiler display as expected?
This was my dummy class for testing:
public class CustomUmbracoViewPage<T> : UmbracoViewPage<T>
public override void Execute()
thanks for trying to replicate :)
hmm interesting, no I changed back to UmbracoViewPage but it's still not showing.
so at this point I have:
I wonder what i've done as it's essentially a vanilla install
I had the same problem, vanilla install via nuget, ver. 8.7.0.
Solved it by adding @MiniProfiler.Current.RenderIncludes() in the layout cshtml.
You also need to add @using StackExchange.Profiling; at the top.
I found that when you want to view backoffice requests as well you could go directly to the MiniProfiler-pages:
Will display a recent list of requests and provide navigation for details.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted