安全警告:附加到不受信任的用户所拥有的进程可能很危险。Security Warning: Attaching to a process owned by an untrusted user can be dangerous. 如果以下信息看上去可疑或者你无法确定,请勿附加到此进程If the following information looks suspicious or you are unsure, do not attach to this process

如果附加到包含部分可信代码或由不可信用户拥有的进程,则在该附加操作发生之前,会出现此警告对话框。This warning dialog box appears when you attach to a process that contains partially trusted code or is owned by an untrusted user immediately before the attach occurs. 包含恶意代码的不可信进程可能会损害执行调试的计算机。An untrusted process that contains malicious code has the potential to damage the computer doing the debugging. 如果有理由不信任该进程,则应单击“取消”阻止调试。If you have reason to distrust the process, then you should click Cancel to prevent debugging.

若要在调试合理方案时禁止显示此警告,请关闭 Visual Studio,并将此注册表项的值设置为 1:HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\Debugger\DisableAttachSecurityWarning,然后重启 Visual Studio。To suppress this warning when debugging a legitimate scenario, close Visual Studio, and set the value of this registry key to 1: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\Debugger\DisableAttachSecurityWarning, and then restart Visual Studio. 在调试完方案后,请将值重置为 0,并重新启动 Visual Studio。After you finish debugging the scenario, reset the value to 0, and restart Visual Studio.

“可信用户”包括您自己以及一组标准用户,通常在安装有 .NET Framework 的计算机上定义了这些用户(如 aspnetlocalsystemnetworkservicelocalservice)。"Trusted users" include yourself, plus a set of standard users who are typically defined on computers that have the .NET Framework installed, such as aspnet, localsystem, networkservice, and localservice.

UIElement 列表UIElement List

名称 为调试而请求的程序集的名称Name Name of the assembly requested to debug

用户 当前用户User Current user

附加 按下它即可通过附加来继续进行调试Attach Press to continue to debug by attaching

不附加 不附加到进程Don't Attach Do not attach to the process

请参阅See also