GleamTech component debugging on production server

Even if no debugger is attached, DebugView tool from MS Sysinternals can be used when 
there is DefaultTraceListener or our own DebuggerTraceListener which uses win32 OutputDebugString.

If you add one of these listeners, you can view events in DebugView tool:

  1.  Add below config in app.config or web.config inside  <configuration> tag:

    <system.diagnostics>
      <sources>
        <source name="GleamTech" switchValue="All">
          <listeners>
            <add name="myListener" type="GleamTech.Diagnostics.DebuggerTraceListener, GleamTech.Common" />           
          </listeners>
        </source>
      </sources>
    </system.diagnostics>
  2.  Open DebugView and ensure you enable Capture -> Capture Global Win32 from menu:


  3. Now you observe important events from GleamTech components:


Before GleamTech.Common Version 6.7.0 - September 26, 2025, we were removing DefaultTraceListener for performance reasons but now it will not be removed if it has a different name than Default

This can useful for debugging problems on a production server.
We log to trace sources such as GleamTech and GleamTech.AssemblyResolver