Beispiel #1
0
        public int OnModeChange(DBGMODE dbgmodeNew)
        {
            if (IsInBreakMode)
            {
                LeaveBreakMode?.Invoke(this, EventArgs.Empty);
            }

            IsInBreakMode = dbgmodeNew == DBGMODE.DBGMODE_Break;
            IsDebugging   = dbgmodeNew != DBGMODE.DBGMODE_Design;

            if (IsInBreakMode)
            {
                EnterBreakMode?.Invoke(this, EventArgs.Empty);
            }

            return(VSConstants.S_OK);
        }
Beispiel #2
0
        int IVsDebuggerEvents.OnModeChange(DBGMODE dbgmodeNew)
        {
            switch (dbgmodeNew)
            {
            case DBGMODE.DBGMODE_Design:
                EnterDesignMode?.Invoke();
                break;

            case DBGMODE.DBGMODE_Break:
                EnterBreakMode?.Invoke();
                break;

            case DBGMODE.DBGMODE_Run:
                EnterRunMode?.Invoke();
                break;

            case DBGMODE.DBGMODE_Enc:
                EnterEditAndContinueMode?.Invoke();
                break;
            }

            return(VSConstants.S_OK);
        }