Is there a C# equivalent method to Java\'s Exception.printStackTrace()
or do I have to write something myself, working my way through the InnerExceptions?
Since @ryan-cook answer didn't work for me, if you want to print the stack trace without having an exception, you can use:
System.Diagnostics.StackTrace stackTrace = new System.Diagnostics.StackTrace();
Console.WriteLine(stackTrace)
Unfortunately, this can't be done in a PCL or in a .NETStandard Library