コード例 #1
0
        public ManagedDebugStrategy(CdbCommunicationProxy cdbProxy)
        {
            session = cdbProxy;

            // Load SOS extensions. For CLR40, there is no mscorwks.dll, SOS is installed
            // in the same directory as CLR.exe.
#if TESTBUILD_CLR40
            string result = session.SendCommand(".loadby sos clr");
#else
            string result = session.SendCommand(".loadby sos mscorwks");
#endif
            if (result.ToLowerInvariant().Contains("unable to find module"))
            {
                throw new ApplicationException("Failed to load 'SOS'.");
            }
            session.SendCommand(".cxr");
        }
コード例 #2
0
 /// <summary>
 /// End the cdb session.
 /// </summary>
 /// <returns>Full text of session.</returns>
 public string Close()
 {
     // Exit cdb session.
     cdbProxy.SendCommand("q");
     return(cdbProxy.GetFullLog());
 }