View stack and heap

Is there a free stack and heap viewer for .NET that shows what types are allocated on the stack and heap. I need this for the training that I will conduct.

+4
source share
2 answers

I am using WinDbg with SOS . Attach to the process and use the following commands:

!dumpheap -stat display all objects in the managed heap.

!clrstack -a display a stack of managed calls, including parameters and locales for the current thread. Keep in mind that release versions may limit the number of local users available.

~Xs switch to stream X.

SOS has many other useful commands for checking managed applications.

+5
source

Source: https://habr.com/ru/post/1345650/


All Articles