Friday, January 27, 2012

How To: Disable “Attach Security Warning” of Visual Studio

When you attach to a process, you sometimes get the message confirming whether you want to attach the process.

Warning

This happens for each process you are attaching.  ANNOYING!  This is how to disable it.

  1. Make sure Visual Studio 2010 is first shut down
  2. Click Start > Run... Type "regedit" <Enter>
  3. For VS 2010 navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger
    1. For VS 2008 navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger
  4. Set DisableAttachSecurityWarning to 1

Cheers,
Justin

2 comments: