Exemple #1
0
        private void Resume(RemoteDebugApplicationThread t, ResumeAction r)
        {
            tagBREAKRESUME_ACTION action = tagBREAKRESUME_ACTION.BREAKRESUMEACTION_IGNORE;

            switch (r)
            {
            case ResumeAction.Continue:
                action = tagBREAKRESUME_ACTION.BREAKRESUMEACTION_CONTINUE;
                break;

            case ResumeAction.StepIn:
                action = tagBREAKRESUME_ACTION.BREAKRESUMEACTION_STEP_INTO;
                break;

            case ResumeAction.StepOut:
                action = tagBREAKRESUME_ACTION.BREAKRESUMEACTION_STEP_OUT;
                break;

            case ResumeAction.StepOver:
                action = tagBREAKRESUME_ACTION.BREAKRESUMEACTION_STEP_OVER;
                break;

            case ResumeAction.Abort:
                action = tagBREAKRESUME_ACTION.BREAKRESUMEACTION_ABORT;
                break;

            default:
                action = tagBREAKRESUME_ACTION.BREAKRESUMEACTION_CONTINUE;
                break;
            }

            remoteDebugApplication.ResumeFromBreakPoint(t.GetRemoteDebugApplicationThread(), action, tagERRORRESUMEACTION.ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller);
        }
        private void AppDebugger_BreakPoint(IRemoteDebugApplicationThread prpt, tagBREAKREASON br, IActiveScriptErrorDebug pError)
        {
            RemoteDebugApplicationThread rdat = null;

            if (prpt != null)
            {
                rdat = new RemoteDebugApplicationThread(prpt);
            }

            ActiveScriptErrorDebug ased = null;

            if (pError != null)
            {
                ased = new ActiveScriptErrorDebug(pError);
            }

            BreakPoint?.Invoke(rdat, br.ToBreakReason(), ased);
        }
Exemple #3
0
 public void Continue(RemoteDebugApplicationThread t)
 {
     Resume(t, ResumeAction.Continue);
 }
Exemple #4
0
 public void Abort(RemoteDebugApplicationThread t)
 {
     Resume(t, ResumeAction.Abort);
 }
Exemple #5
0
 public void StepOut(RemoteDebugApplicationThread t)
 {
     Resume(t, ResumeAction.StepOut);
 }