Welcome to the Glimpse Documentation! Here we hope to introduce you to the various tutorials, concepts and APIs you might need when discovering and using Glimpse.

NOTE: Glimpse docs are currently being improved. If you'd like to help out, just edit this page or contribute to our GitHub Wiki

Trace Tab

The Trace tab shows any messages traced to System.Diagnostics.Trace or System.Diagnostics.Debug during the lifetime of the HTTP request.

Trace Tab


  1. Message: The message that was traced
  2. Category: The category level of message
  3. From First: The duration, in milliseconds, from when the first trace message
  4. From Last: The duration, in milliseconds, from when the previous trace message

Frequently Asked Questions

  • What type of Tracing does Glimpse support?

    Glimpse supports the standard set of System.Diagnostics Trace and Debug methods:

    • Trace.TraceWarning("...") : void
    • Trace.TraceError("...") : void
    • Trace.TraceInformation("...") : void
    • Debug.TraceWarning("...") : void
    • Debug.TraceError("...") : void
    • Debug.TraceInformation("...") : void

    See full list of Trace & Debug methods on MSDN

Tips and tricks

TraceSource support

The Trace tab can trace messages from instances of System.Diagnostics.TraceSource as well.

Configure the <system.diagnostics> section in web.config:

        <source name="Example Source" switchName="sourceSwitch" switchType="System.Diagnostics.SourceSwitch">
                <add name="GlimpseListener"/>
        <add name="sourceSwitch" value="Warning"/>
        <add name="GlimpseListener" type="Glimpse.Core.TraceListener, Glimpse.Core"/>

Once configured, write messages with a properly named instance of TraceSource:

var traceSource = new TraceSource("Example Source");
traceSource.TraceEvent(TraceEventType.Warning, 0, "Log message text...");