Glimpse allow you to easily perform diagnostics on your MVC application at runtime. As an ASP.NET developer (including ASP.NET MVC), you should use it all the time.
Glimpse lets you find useful information like:
The new version of Glimpse now also gives you a Heads Up Display (HUD) showing you important information all the time. While developing, it's a good idea to keep Glimpse open so you can see any issues as soon they come up.
Figure: The new Glimpse Heads Up Display
For more information on what the HUD provides, see Damian Brady's blog post.
Glimpse is available on NuGet, so it’s a simple matter to get it up and running on your application. You can find out more from their website.
Figure: Glimpse in action - We can see which routes were chosen for this page, and the parameters used by the controller
Glimpse is very powerful but there are some considerations to be addressed before using it on Production.
Even with these considerations, Glimpse can provide some unique insights into production server performance so it’s worth spending the time to correctly configure Glimpse for production use.
Install Glimpse on production so that only internal developers can enable it.This is achieved by:
<glimpse enabled="true"><ipAddresses><add address="127.0.0.1" /><add addressRange="192.168.1.1/24" /><add address="::1" /></ipAddresses></glimpse>
Figure: Glimpse is now limited to localhost and the 192.168.1.x network
<location path="glimpse.axd"><system.web><authorization><allow roles="Developers" /><deny users="\*" /></authorization></system.web></location>
Figure: Glimpse is restricted to the Developers group
If an end-user reports a problem on your website it can be useful to temporarily enable Glimpse for that user. Glimpse also has remote features allowing developers to see the user’s Glimpse data.
<location path="glimpse.axd"><system.web><authorization><allow roles="Developers, PublicGlimpseUsers" /><deny users="\*" /></authorization></system.web></location>
Figure: Glimpse.axd is now restricted to Developers and PublicGlimpseUsers
<pluginBlacklist><add plugin="Glimpse.Core.Plugin.Config" /></pluginBlacklist>
Figure: How to disable the Config tab