tools/VsIdeHostAdapter/TargetAddIn/HostSide/VsIdeHostDebugger.cs
/// <summary>
/// Detach from all attached processes. Ignore exceptions.
/// </summary>
Detach from all attached processes. Ignore exceptions.
Detach from all attached processes . Ignore exceptions .
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
        public void DetachDebugger()
        {
            foreach (KeyValuePair<int, EnvDTE.Process> pair in m_attachedProcesses)
            {
                try
                {
                    pair.Value.Detach(false); 
                }
                catch (Exception ex)
                {
                    Debug.Fail("HostSide.VsDebugger.DetachDebugger: " + ex.ToString());
                }
            }
            m_attachedProcesses.Clear();
        }
[ SuppressMessage ( " " , " " ) ] public void DetachDebugger ( ) { foreach ( KeyValuePair < int , EnvDTE . Process > pair in m_attachedProcesses ) { try { pair . Value . Detach ( false ) ; } catch ( Exception ex ) { Debug . Fail ( " " + ex . ToString ( ) ) ; } } m_attachedProcesses . Clear ( ) ; }
Detach from all attached processes.
Detach from all attached processes .
// waitForBreakOnEnd = false. // Ignore the exception.