public static bool HasDebuggerAttached(this Process p)
 {
     return(VisualStudio.IsDebugging(p.ProcessID));
 }