去除VS附加到进程时的警告信息

有时在利用Visual Studio的”附加到进程”调试程序时会遇到下面的对话框来让你确认是否附加,这时我们一般都选择”是”(废话,不确定我点这个菜单干什么?XD)。

Title: Attach Security Warning

Message:  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.

如果你不想因为出现这个菜单而多浪费时间可以按以下的步骤禁用这个提示。

  1. 关闭所有的Visual Studio实例。
  2. 将注册表键HKCU\Software\Microsoft\VisualStudio\10.0\Debugger\DisableAttachSecurityWarning的值从0改到1。
  3. 启动Visual Studio。
原文地址:https://www.cnblogs.com/zhangronghua/p/RemoveWarningMessage.html