I have a process dump from a process (.Net Framework) that shows an OutOfMemoryException. I have looked into the process dump using "!dumpheap -stat" and figured out that the top memory consumption is by "System.String" type.
MT Count TotalSize Class Name
00007ffb081f97f8 10608868 1287368622 System.String*
To debug further, I want to see the value of all (10608868) these strings. I tried with the following command to see the values:
.foreach (address {!DumpHeap -type System.String -short }) {!do ${address} }
and this command outputs:
But I just want to print all the String values alone into a file and the file content should look like:
{"result":[{"user":{"abc..."
{"result":[{"user":{"zyz..."
string3
string4
What is the full command to be used in WinDbg to get this done?
