Suppress Visual Studio debug attach warning

This is such a pain in the neck, I had to re-blog this….

When you are debugging in VS 2010 and attaching to the w3wp.exe process, you’ll get this lovely warning (with no option to suppress!)

AttachWarning

To remove that warning, run the powershell command:

Set-ItemProperty HKCU:\Software\Microsoft\VisualStudio\10.0\Debugger -Name “DisableAttachSecurityWarning”  -value “1”

UPDATE!  Thanks to Donal Conlon for commenting that Visual Studio should not be running when you execute this command.

Thanks d1$c0!

  1. #1 by Disco on September 3, 2010 - 7:02 pm

    Um yes, hello Mr.Jake

    I would like to let you know that VS should not be open when you make this change, else the value may not stick.

    Carry on.

  2. #2 by Jake on September 3, 2010 - 7:30 pm

    YOU are correct, sir. Shutting down VS is vital to making this work properly. For you, a gold STAR!

Leave a Reply to Jake Cancel reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: