Tracing Tidbit: Getting Callstacks Automatically

When you get an Exception traced in Indigo, part of that trace includes the callstack which is naturally traced as part of Exception.ToString(). However, callstack information is generally useful for other non-Exception traces (for example, trying to track down who is Aborting a socket). Part of the beauty of our tracing infrastructure is that it’s really easy to modify your trace listener. It turns out there is a built-in option for emitting callstacks. Simply add:


to your listener config.

The relevant line of config then looks like:

<add name="multifile"
     initializeData=".Whatever.xml" />

Happy debugging!

One thought on “Tracing Tidbit: Getting Callstacks Automatically

  1. Pingback: : .NET Resources

Leave a Reply

Your email address will not be published. Required fields are marked *