示例#1
0
        // 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));
        }
示例#2
0
        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);
            }
        }