How can I see Objects Inside Heap amp Stack in C.Net

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

Is it possible to see contents of stack and heap after every line of execution. I want to see it as it will give clear idea about memory allocation and deallocation in .Net. With your

If any document or link which will clear my doubts with your answer please share.

Answers

http://en.wikipedia.org/wiki/WinDbg http://en.wikipedia.org/wiki/WinDbg

Once you ve got that sorted out; attach WinDbg to your process, the load the debugger extension. For example:

.load C:pathtoextensionspsscor4.dll

http://msdn.microsoft.com/en-us/library/bb190764.aspx http://msdn.microsoft.com/en-us/library/bb190764.aspx

The output of both of these commands is very raw. !dumpheap -stat will give you a "statistical" overview of your heap. The type, the number allocated, and the bytes in total for all allocations.

This isn t a super straightforward task. It ll take a while to get enough practice with WinDbg if you haven t used it before.

http://blogs.msdn.com/b/tess/archive/2008/04/28/setting-breakpoints-in-net-code-using-bpmd.aspx http://blogs.msdn.com/b/tess/archive/2008/04/28/setting-breakpoints-in-net-code-using-bpmd.aspx

http://www.jetbrains.com/profiler/ http://www.jetbrains.com/profiler/

Once you ve gotten started, you can ask (new) more specific questions about SOS or Psscor.

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/7547349/how-can-i-see-objects-inside-heap-stack-in-c-net

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils