public Task<ExecutionResult> Execute(IInteractiveWindow window, string arguments) { var eval = window.GetPythonDebugReplEvaluator(); if (eval != null) { eval.DisplayProcesses(); } return ExecutionResult.Succeeded; }
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); }
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); }
public Task <ExecutionResult> Execute(IInteractiveWindow window, string arguments) { var eval = window.GetPythonDebugReplEvaluator(); if (eval != null) { eval.StepOver(); } return(ExecutionResult.Succeeded); }
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; }