A guy called Kevin Obee has extended Glimpse to include extra Sitecore specific data in its results, which make it a must have tool if you need to do any performance investigation, or troubleshooting within a Sitecore website. In today’s post, I’m going to cover how to install Sitecore Glass mapper and get up and running with it.
How To Install Sitecore.Glimpse?
Installing Glimpse for Sitecore is pretty easy as it’s simply adding two Nuget packages. In Visual Studio, right-click on your solution in ‘Solution Explorer’ and select ‘Manage Nuget Packages for Solution’.
In Nuget, search for ‘Glass Mapper’ and install Glass.Mapper and Boc.Glass.Mapper.Sc.
You can enable Glimpse from your web browser by adding ‘Glimpse.axd’ to the end of your Sitecore instance Url, like so:
When I first tried to access the Glimpse editor screen I got a 500.19 error, like so:
This apparently is down to a web.config error. To fix this issue in your web.config do a search for trace. Delete that line and replace it with this one:
<trace writeToDiagnosticsTrace="true" enabled="true" requestLimit="50" pageOutput="false" traceMode="SortByTime" localOnly="true" />
Aftter this change if you try and load Glimpse again, it should load correctly and you should see:
To enable Glimpse, hit the big ‘Turn Glimpse On’ button. Load your website, if everything has gone according to plan after your web page loads you should see a little button on the bottom left of the web page.
If you click on the giant ‘G’ a chrome style developer toolkit will appear:
Most of the toolkit is standard out the box Glimpse feature. you should also see two Sitecore tabs:
- Sitecore Analytics
The Sitecore Tab contains information like the current Sitecore item, from here you can see all the properties that make up the page, the properties, and values for each property. Other information Sitecore Glimpse displays include what template has been used, license information, current user information, and IIS hosting details to name a few.
This tab displays information gathered by the Sitecore Experience Platform. If you don’t have Sitecore Experience Platform enabled then this tab will be disabled.