Last post May 14, 2008 12:23 AM by arhamg
May 13, 2008 11:43 AM|arhamg|LINK
i want to know that is there a way by which I can log the values of parameters\arguments with which the method was called, in which the exception is raised?
Means for following code:
public Sub MySub(ByVal arg1 as String, ByVal arg2 as Integer)
catch ex as exception
I would like to know the values of arg1 and arg2 at the point of catching an exception.
thnx in advance.
May 13, 2008 12:06 PM|Ken Tucker|LINK
May 14, 2008 12:23 AM|arhamg|LINK
Sorry, my mistake.
I would like to make it generic so that each developer does not have to pass individual args or for that matter a collection of args to the handleException routine.
and I am more intersted in knowing that are there any properties of the ex(exception object) or any work around like to access some stack or heap on which asp.net stores the
args(if at all it does).