コード例 #1
0
        public int EnumProcesses(out IEnumDebugProcesses2 ppEnum)
        {
            var process = new PythonRemoteDebugProcess(this, 54321, "Python", "*", "*");

            ppEnum = new PythonRemoteEnumDebugProcesses(process);
            return(VSConstants.S_OK);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
 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);
         }
     }
 }
コード例 #5
0
 public int Clone(out IEnumDebugProcesses2 ppEnum)
 {
     ppEnum = new PythonRemoteEnumDebugProcesses(_process);
     return(0);
 }