Beispiel #1
0
 /// <summary>
 /// Default constructor. Sets the acronym to "ee".
 /// </summary>
 /// <param name="esop">The ExceptionStopOptionPolicy whose switch to control.</param>
 public ExceptionEnhancedStopOptionPolicy(ExceptionStopOptionPolicy esop)
 {
     m_esop  = esop;
     Acronym = "ee";
 }
Beispiel #2
0
        private static void InitStopOptionsProperty()
        {
            MDbgStopOptions stopOptions = new MDbgStopOptions();
            Shell.Properties.Add(MDbgStopOptions.PropertyName, stopOptions);

            stopOptions.Add(new SimpleStopOptionPolicy("ml", "ModuleLoad"), ManagedCallbackType.OnModuleLoad);
            stopOptions.Add(new SimpleStopOptionPolicy("cl", "ClassLoad"), ManagedCallbackType.OnClassLoad);
            stopOptions.Add(new SimpleStopOptionPolicy("al", "AssemblyLoad"), ManagedCallbackType.OnAssemblyLoad);
            stopOptions.Add(new SimpleStopOptionPolicy("au", "AssemblyUnload"), ManagedCallbackType.OnAssemblyUnload);
            stopOptions.Add(new SimpleStopOptionPolicy("nt", "NewThread"), ManagedCallbackType.OnCreateThread);
            stopOptions.Add(new SimpleStopOptionPolicy("cn", "CustomNotification"), ManagedCallbackType.OnCustomNotification);
            stopOptions.Add(new SimpleStopOptionPolicy("lm", "LogMessage & MDAs"),
                new ManagedCallbackType[] { ManagedCallbackType.OnLogMessage, ManagedCallbackType.OnMDANotification });
            ExceptionStopOptionPolicy e = new ExceptionStopOptionPolicy();
            stopOptions.Add(e, ManagedCallbackType.OnException2);
            stopOptions.Add(e, ManagedCallbackType.OnExceptionUnwind2);

            ExceptionEnhancedStopOptionPolicy stopPolicy = new ExceptionEnhancedStopOptionPolicy(e);
            stopOptions.Add(stopPolicy, ManagedCallbackType.OnException2);
            stopOptions.Add(stopPolicy, ManagedCallbackType.OnExceptionUnwind2);
        }
 /// <summary>
 /// Default constructor. Sets the acronym to "ee".
 /// </summary>
 /// <param name="esop">The ExceptionStopOptionPolicy whose switch to control.</param>
 public ExceptionEnhancedStopOptionPolicy(ExceptionStopOptionPolicy esop)
 {
     m_esop = esop;
     Acronym = "ee";
 }