How to take a snap shot of memory...

  • Thread starter Thread starter G.Ashok
  • Start date Start date
G

G.Ashok

Hi,

Is there any facility available in the debugging engine of dot net framework
to take snap shot (dump) of all the memory variables including local global
(every procedure in the execution stack from the current execution point
backwards. (I don't want the values of CPU registers which is little
difficult to understand to analize)

What I want is when any unhandled/handled exception is occurs I want to dump
the values of the all this variables and execution stack which will let me
analyze the problem/bug what the causes this exception.

Thanks in advance...

Regards,
....Ashok
 
Hi,

The exception class has a stacktrace property. It returns a string
that describes the contents of the call stack, with the most recent method
call appearing first.

Ken
 
* "G.Ashok said:
Is there any facility available in the debugging engine of dot net framework
to take snap shot (dump) of all the memory variables including local global
(every procedure in the execution stack from the current execution point
backwards. (I don't want the values of CPU registers which is little
difficult to understand to analize)

What I want is when any unhandled/handled exception is occurs I want to dump
the values of the all this variables and execution stack which will let me
analyze the problem/bug what the causes this exception.

Catch the exception and analyze its 'StackTrace' property.

<http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemexceptionclassstacktracetopic.asp>
 
Ken, thanks.

I am aware of stack trace. I want the memory variable dump. This gives me
exact idea what happened at the time the exception is thrown.

....Ashok
 
Back
Top