All Glimpse documentation is available on the Glimpse web site: http://getGlimpse.com/

Using Glimpse (CodePlex distribution)

  1. Download Glimpse.Core.dll, and Glimpse.Mvc3.dll if you are using Glimpse in an MVC3 project.
  2. Add references from your main web project to Glimpse.Core.dll and Glimpse.Mvc3.dll if your site is an MVC3 site.
  3. Edit your site's web.config to include the following nodes:

    <configuration>
        <configSections>
            <section name="glimpse" type="Glimpse.Core.Configuration.GlimpseConfiguration" />
        </configSections>
        <glimpse enabled="true"/>
    </configuration>

  4. If you are using IIS7/IIS Express, you can register the Glimpse HttpModule and HttpHandler by adding these nodes:

    <system.webServer>
            <modules>
                <add name="Glimpse" type="Glimpse.Core.Module,Glimpse.Core" preCondition="integratedMode"/>
            </modules>
            <handlers>
                <add name="Glimpse" path="glimpse.axd" verb="GET,POST" type="Glimpse.Core.Handler,Glimpse.Core"  preCondition="integratedMode" />
            </handlers>
        </system.webServer>

  5. If you are not using IIS7 (for example if you are using IIS6 or the web server built into Visual Studio) you can instead register Glimpse's HttpModule and HttpHandler by adding these nodes to your web.config:

        <system.web>
            <httpModules>
                <add name="Glimpse" type="Glimpse.Core.Module"/>
            </httpModules>
            <httpHandlers>
                <add path="glimpse.axd" verb="GET,POST" type="Glimpse.Core.Handler"/>
            </httpHandlers>
        </system.web>

  6. Finally, add this last node:

    <system.web>
            <trace writeToDiagnosticsTrace="true" enabled="true" pageOutput="false"/>
    </system.web>

  7. Run your site and browse to https://yoursite/Glimpse.axd and press the big "Turn Glimpse On" button.
  8. From now on you should see the little Glimpse icon in the lower right hand corner of pages in your website!

Remember, the Glimpse NuGet package handles all of these steps for you automatically!

Last edited Jun 30, 2011 at 3:32 PM by nikmd23, version 3

Comments

No comments yet.