// Get the Process object for the given PID. public DebuggedProcess GetProcess(int pid) { ICorDebugProcess proc = null; m_debugger.GetProcess((uint)pid, out proc); return(new DebuggedProcess(proc)); }
public void AttachDebuggedProcess(int processId) { TraceUtil.WriteLineInfo(this, "Debug process: " + processId); ICorDebugProcess dbgProcess; dbgProcess = _debug.GetProcess((uint)processId); if (dbgProcess != null) { dbgProcess = _debug.DebugActiveProcess((uint)processId, 0); } }