Track all object references in C#

后端 未结 1 1129
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 05:37

Is it possible to list all references of an object, while debugging in Visual Studio. I am using C#. I am looking for something similar to what GC does during garbage collec

相关标签:
1条回答
  • 2020-12-03 06:21

    SOS can do this for you. It isn't integrated into the debugger, but you can attach it to your running process. You may find it helpful to use SOSAssist, rather than learning the console syntax. IIRC:

    !dumpheap –type {type}
    
    0 讨论(0)
提交回复
热议问题