Sosex 확장 DLL과 함께 WinDbg를 사용하여 기술을 테스트 해 볼 수 있습니다. WinDbg에 익숙하지 않다면 .NET 디버깅 정보의 금광 인 Tess Ferrandez의 blog을 읽어보십시오.
기본적으로 Sosex.dll에는 사용자가 지정한 특정 개체 주소에 대한 참조가있는 개체를 나열하는 !Refs
명령이 있습니다. 예를 들면 다음과 같습니다.
Usage:
!refs <hexObjectAddr>
Lists all references held by the specified object
Lists all references to the specified object (searches heaps, stacks, registers, handle tables and the freachable queue)
Refs are listed in the following format:
hexAddr decSize strTypeName
Sample output:
0:000> !sosex.refs 7fff2970
Objects referenced by 7fff2970:
7fff1100 64 System.IO.__ConsoleStream
7fff1388 136 System.Text.SBCSCodePageEncoding
7fff2c50 48 System.Text.DecoderNLS
7fff2c80 280 System.Byte[]
7fff2d98 536 System.Char[]
7fff1140 24 System.Byte[]
Objects referencing 7fff2970:
7fff2fb0 32 System.IO.TextReader+SyncTextReader
``
매우 하드 코어 솔루션이므로이 경우 새로 준비해야합니다. 그러나 .NET 응용 프로그램을 디버깅하는 매우 강력한 방법이 될 수 있습니다.