/// <summary> /// Add a port. /// </summary> public int AddPort(IDebugPortRequest2 pRequest, out IDebugPort2 ppPort) { DLog.Debug(DContext.VSDebuggerComCall, "DebugPortSupplier.AddPort"); string name; ErrorHandler.ThrowOnFailure(pRequest.GetPortName(out name)); var port = new DebugPort(this, pRequest); ports[name] = port; ppPort = port; return VSConstants.S_OK; }
/// <summary> /// Add a port. /// </summary> public int AddPort(IDebugPortRequest2 pRequest, out IDebugPort2 ppPort) { DLog.Debug(DContext.VSDebuggerComCall, "DebugPortSupplier.AddPort"); string name; ErrorHandler.ThrowOnFailure(pRequest.GetPortName(out name)); var port = new DebugPort(this, pRequest); ports[name] = port; ppPort = port; return(VSConstants.S_OK); }
/// <summary> /// Default ctor /// </summary> internal DebugProcess(DebugEngine engine, DebugPort port, DebuggerLib.Debugger debugger, int processId, Guid guid, string apkPath, MapFile mapFile, EngineEventCallback eventCallback) { this.engine = engine; this.port = port; this.debugger = debugger; this.processId = processId; this.guid = guid; this.apkPath = apkPath; this.eventCallback = eventCallback; creationDate = DateTime.Now; program = new DebugProgram(this, debugger, apkPath, mapFile, eventCallback); program.Terminated += OnProgramTerminated; }