I have C# code that’s giving an exception. I have the code within a try – catch and I can see the exception but I am having a problem viewing it in VS2012. Is there a way I can send a stack trace to the console so I can look without having to right click on properties of the exception?
Even better does anyone have any code they use to log out more detailed information to the console?
ToStringis overridden in theExceptionclasses and will return the stack trace.