예제 #1
0
 public Task<ExecutionResult> Execute(IInteractiveWindow window, string arguments) {
     var eval = window.GetPythonDebugReplEvaluator();
     if (eval != null) {
         eval.DisplayProcesses();
     }
     return ExecutionResult.Succeeded;
 }
예제 #2
0
        public Task <ExecutionResult> Execute(IInteractiveWindow window, string arguments)
        {
            var eval = window.GetPythonDebugReplEvaluator();

            if (eval != null)
            {
                if (string.IsNullOrEmpty(arguments))
                {
                    eval.DisplayActiveFrame();
                }
                else
                {
                    int id;
                    if (int.TryParse(arguments, out id))
                    {
                        eval.ChangeActiveFrame(id);
                    }
                    else
                    {
                        window.WriteError(String.Format("Invalid arguments '{0}'. Expected frame id.", arguments));
                    }
                }
            }
            return(ExecutionResult.Succeeded);
        }
예제 #3
0
        public Task <ExecutionResult> Execute(IInteractiveWindow window, string arguments)
        {
            var eval = window.GetPythonDebugReplEvaluator();

            if (eval != null)
            {
                if (string.IsNullOrEmpty(arguments))
                {
                    eval.DisplayActiveThread();
                }
                else
                {
                    long id;
                    if (long.TryParse(arguments, out id))
                    {
                        eval.ChangeActiveThread(id, true);
                    }
                    else
                    {
                        window.WriteError(Strings.DebugReplThreadCommandInvalidArguments.FormatUI(arguments));
                    }
                }
            }
            return(ExecutionResult.Succeeded);
        }
예제 #4
0
        public Task <ExecutionResult> Execute(IInteractiveWindow window, string arguments)
        {
            var eval = window.GetPythonDebugReplEvaluator();

            if (eval != null)
            {
                eval.StepOver();
            }
            return(ExecutionResult.Succeeded);
        }
예제 #5
0
 public Task<ExecutionResult> Execute(IInteractiveWindow window, string arguments) {
     var eval = window.GetPythonDebugReplEvaluator();
     if (eval != null) {
         if (string.IsNullOrEmpty(arguments)) {
             eval.DisplayActiveThread();
         } else {
             long id;
             if (long.TryParse(arguments, out id)) {
                 eval.ChangeActiveThread(id, true);
             } else {
                 window.WriteError(String.Format("Invalid arguments '{0}'. Expected thread id.", arguments));
             }
         }
     }
     return ExecutionResult.Succeeded;
 }