TraceSource and TraceListener quietly fail to do anything
How do I troubleshoot System.Diagnostics trace when it quietly fails to do anything at all? I'm so glad you asked! This problem happened to me recently. I suspected something in the chain of TraceSwitch es, TraceSource s and TraceListener s had gone awry. But with no trace and no error messages, I needed more information. The authors of the BCL helpfully put all the diagnostic information in a private list whose values disappear when ever the garbage collector feels like it. Still, the info was good enough and accessible via reflection. It turned out that I had several TraceSource 's but the