I have a regular C# code. I have no exceptions. I want to programmatically log the current stack trace for debugging purpose. Example: public void executeMethod() { logStackTrace(); method();...
It’s a method on Exception instances that prints the stack trace of the instance to System.err. It’s a very simple, but very useful tool for diagnosing an exceptions. It tells you what happened...