To print the current Stack Trace without having a exception you can use the StackTrace class located in System.Diagnostics Namespace
Sample C#
System.Diagnostics.StackTrace stackTrace = new System.Diagnostics.StackTrace();
Sample VB.NET
Dim stackTrace As New System.Diagnostics.StackTrace()
for more informations take a look at the MSDN: StackTrace Class, System.Diagnostics Namespace
RT @CodeSnippetsNET: Get the current Stack Trace without a exception?: http://t.co/GSTOkdaIw6 #csharp #vb #programming
RT @CodeSnippetsNET: Get the current Stack Trace without a exception?: http://t.co/GSTOkdaIw6 #csharp #vb #programming