예제 #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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void Continue(RemoteDebugApplicationThread t)
 {
     Resume(t, ResumeAction.Continue);
 }
예제 #4
0
 public void Abort(RemoteDebugApplicationThread t)
 {
     Resume(t, ResumeAction.Abort);
 }
예제 #5
0
 public void StepOut(RemoteDebugApplicationThread t)
 {
     Resume(t, ResumeAction.StepOut);
 }