Exemple #1
0
        void CleanDebugger()
        {
            if (Debugger == null)
            {
                return;
            }

            Debugger.Stack.OnChange       -= Stack_OnChange;
            Debugger.AltStack.OnChange    -= StackAlt_OnChange;
            Debugger.OnStateChanged       -= Debugger_OnStateChanged;
            Debugger.OnInstructionChanged -= Debugger_OnInstructionChanged;

            Debugger.Dispose();
            Debugger = null;

            Stack_OnChange(null, null);
            StackAlt_OnChange(null, null);
            UpdateDebugState();
        }