S
samtilden
During my code's processing of an exception, I would like to format the
exception myself.
I can get almost everything (I can get exception itself, stack trace,
file name, line number, method, parameters) but cannot seem to get the
source code where the exception occurred.
The ASP.NET exception handler does display the source code, but I
cannot seem to get it myself and, hence, display it myself.
Through what objects (e.g., System.Diagnostics, System.Reflection,
etc.) do I need to go through in order to get the source code?
P.S. Yes, I compile in Debug mode and, yes, there a .pdb file
available, if that helps.
Thank you.
exception myself.
I can get almost everything (I can get exception itself, stack trace,
file name, line number, method, parameters) but cannot seem to get the
source code where the exception occurred.
The ASP.NET exception handler does display the source code, but I
cannot seem to get it myself and, hence, display it myself.
Through what objects (e.g., System.Diagnostics, System.Reflection,
etc.) do I need to go through in order to get the source code?
P.S. Yes, I compile in Debug mode and, yes, there a .pdb file
available, if that helps.
Thank you.