tools/VsIdeHostAdapter/TargetAddIn/HostSide/VsIdeHostDebugger.cs
/// <summary>
/// Detach from previously attached process.
/// </summary>
Detach from previously attached process.
Detach from previously attached process .
public void DetachDebugger(int processId)
        {
            EnvDTE.Process process = m_attachedProcesses[processId];
            try
            {
                process.Detach(false); 
            }
            finally
            {
                m_attachedProcesses.Remove(processId);
            }
        }
public void DetachDebugger ( int processId ) { EnvDTE . Process process = m_attachedProcesses [ processId ] ; try { process . Detach ( false ) ; } finally { m_attachedProcesses . Remove ( processId ) ; } }
Detach from previously attached process.
Detach from previously attached process .
// waitForBreakOnEnd = false. // If there's some problem, do not try removing next time.
processId
int