Esempio n. 1
0
        public static AsyncOperation AttachToProcess(this ProjectOperations opers, DebuggerEngine debugger, ProcessInfo proc)
        {
            var oper = DebuggingService.AttachToProcess(debugger, proc);

            opers.AddRunOperation(oper);
            return(opers.CurrentRunOperation);
        }
Esempio n. 2
0
        public static AsyncOperation AttachToProcess(this ProjectOperations opers, DebuggerEngine debugger, ProcessInfo proc)
        {
            if (!IdeApp.Workbench.Visible)
            {
                IdeApp.Workbench.Present();
            }

            var oper = DebuggingService.AttachToProcess(debugger, proc);

            opers.AddRunOperation(oper);
            return(opers.CurrentRunOperation);
        }
Esempio n. 3
0
        public static AsyncOperation DebugApplication(this ProjectOperations opers, string executableFile, string args, string workingDir, IDictionary <string, string> envVars)
        {
            var monitor = IdeApp.Workbench.ProgressMonitors.GetRunProgressMonitor(System.IO.Path.GetFileName(executableFile));

            var oper = DebuggingService.Run(executableFile, args, workingDir, envVars, monitor.Console);

            opers.AddRunOperation(oper);

            oper.Task.ContinueWith(t => {
                monitor.Dispose();
            });

            return(oper);
        }
Esempio n. 4
0
        public static AsyncOperation DebugApplication(this ProjectOperations opers, string executableFile, string args, string workingDir, IDictionary <string, string> envVars)
        {
            if (opers.CurrentRunOperation != null && !opers.CurrentRunOperation.IsCompleted)
            {
                return(opers.CurrentRunOperation);
            }

            var monitor = IdeApp.Workbench.ProgressMonitors.GetRunProgressMonitor();

            var oper = DebuggingService.Run(executableFile, args, workingDir, envVars, monitor.Console);

            opers.AddRunOperation(oper);

            oper.Task.ContinueWith(t => {
                monitor.Dispose();
            });

            return(oper);
        }