Exemple #1
0
 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbstrHostName)
 {
     DebugHelper.TraceEnteringMethod();
     pbstrHostName = null;
     _process.StartDebugging();
     return(VSConstants.S_OK);
 }
        public int LaunchSuspended(string pszServer, IDebugPort2 port, string exe, string args, string dir,
                                   string env, string options, enum_LAUNCH_FLAGS launchFlags, uint hStdInput, uint hStdOutput,
                                   uint hStdError, IDebugEventCallback2 ad7Callback, out IDebugProcess2 process)
        {
            DebugHelper.TraceEnteringMethod();

            Callback        = new EngineCallback(this, ad7Callback);
            DebuggedProcess = new DebuggedProcess(this, IPAddress.Parse(args), Callback);
            DebuggedProcess.ApplicationClosed += _debuggedProcess_ApplicationClosed;
            DebuggedProcess.StartDebugging();

            process = RemoteProcess = new MonoProcess(port);
            return(VSConstants.S_OK);
        }
Exemple #3
0
        public int LaunchSuspended(string pszServer, IDebugPort2 port, string exe, string args, string dir,
                                   string env, string options, enum_LAUNCH_FLAGS launchFlags, uint hStdInput, uint hStdOutput,
                                   uint hStdError, IDebugEventCallback2 ad7Callback, out IDebugProcess2 process)
        {
            DebugHelper.TraceEnteringMethod();

            Callback = new EngineCallback(this, ad7Callback);

            var debugOptions = DebugOptions.DeserializeFromJson(options);

            HostName        = debugOptions.GetHostIP().ToString();
            ProgramName     = exe;
            DebuggedProcess = new DebuggedProcess(this, debugOptions, Callback);
            DebuggedProcess.ApplicationClosed += OnApplicationClosed;
            DebuggedProcess.StartDebugging();

            process = RemoteProcess = new MonoProcess(port);
            return(VSConstants.S_OK);
        }