Thursday, February 21, 2013

Disable attach security warning

Visual Studio by default is showing a message when trying to attach to process. It is saying that:
Attaching to this process can potentially harm your computer.  If the information below looks suspicious or you are unsure, do not attach to this process.
Because I'm attaching many times a day it becomes really annoying. Couple minutes of googling and here it is the solution for disabling it:
  1. First you need to make sure that Visual Studio isn't running.
  2. Next you need to modify registry key depending on which version of Visual Studio you have.

    For Visual Studio 2008:
    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger

    For Visual Studio 2010:
    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger

    For Visual Studio 2012:
    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\Debugger

    In all cases simply set DisableAttachSecurityWarning to 1.
That's all.

No comments:

Post a Comment