public int EnumProcesses(out IEnumDebugProcesses2 ppEnum) { var process = new PythonRemoteDebugProcess(this, 54321, "Python", "*", "*"); ppEnum = new PythonRemoteEnumDebugProcesses(process); return(VSConstants.S_OK); }
public int EnumProcesses(out IEnumDebugProcesses2 ppEnum) { var process = TaskHelpers.RunSynchronouslyOnUIThread(ct => PythonRemoteDebugProcess.ConnectAsync(this, _debugLog, ct)); if (process == null) { ppEnum = null; return(VSConstants.E_FAIL); } else { ppEnum = new PythonRemoteEnumDebugProcesses(process); return(VSConstants.S_OK); } }
public int EnumProcesses(out IEnumDebugProcesses2 ppEnum) { var process = PythonRemoteDebugProcess.Connect(this); if (process == null) { ppEnum = null; return(VSConstants.E_FAIL); } else { ppEnum = new PythonRemoteEnumDebugProcesses(process); return(VSConstants.S_OK); } }
public int EnumProcesses(out IEnumDebugProcesses2 ppEnum) { if (!PythonDebugOptionsServiceHelper.Options.UseLegacyDebugger) { var process = new PythonRemoteDebugProcess(this, 54321, "Python", "*", "*"); ppEnum = new PythonRemoteEnumDebugProcesses(process); return(VSConstants.S_OK); } else { var process = TaskHelpers.RunSynchronouslyOnUIThread(ct => PythonRemoteDebugProcess.ConnectAsync(this, _debugLog, ct)); if (process == null) { ppEnum = null; return(VSConstants.E_FAIL); } else { ppEnum = new PythonRemoteEnumDebugProcesses(process); return(VSConstants.S_OK); } } }
public int Clone(out IEnumDebugProcesses2 ppEnum) { ppEnum = new PythonRemoteEnumDebugProcesses(_process); return(0); }