See Also: StackTrace Members
System.Diagnostics.StackTrace information will be most informative with Debug build configurations. By default, Debug builds include debug symbols, while Release builds do not. The debug symbols contain most of the file, method name, line number, and column information used in constructing System.Diagnostics.StackFrame and System.Diagnostics.StackTrace objects.
System.Diagnostics.StackTrace might not report as many method calls as expected, due to code transformations that occur during optimization.