Visual Studio没有足够的特权来调试此过程。若要调试此过程,Visual Studio必须以管理员身份运行 [英] Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator

查看:168
本文介绍了Visual Studio没有足够的特权来调试此过程。若要调试此过程,Visual Studio必须以管理员身份运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了Windows服务,并且该服务正在我的本地计算机上以我的帐户运行。当我尝试通过在Visual Studio 2008中将其作为一个流程附加该服务来调试该服务时,我得到无法附加到该流程。 Visual Studio没有足够的特权来调试此过程。要调试此过程,必须以管理员身份运行Visual Studio。
我已经以管理员身份登录到系统,因此在启动VS 2008时,它以管理员身份运行,不确定为什么我会收到此错误。我正在使用Windows XP Pro sp3

I have developed a windows service and this is service is running on my local computer under my account. When I try to debug this service by attaching this as a process in visual studio 2008 I get "Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator." I have logged in to my system as administrator and so when VS 2008 is launched it is running as administrator not sure why I get this error. I am using Windows XP Pro sp3

推荐答案

如果使用Windows XP,则PC的本地安全策略可能会受到限制非管理员运行调试器。默认情况下,只有管理员可以调试。

If you're using Windows XP, the local security policy of the PC may be restricting non-administrators from running debuggers. By default, only administrators can debug.

管理工具->本地安全策略->本地策略->用户权限分配->调试程序

Administrative tools -> Local Security Policy -> Local Policies -> User Rights Assignment -> "Debug programs"

这篇关于Visual Studio没有足够的特权来调试此过程。若要调试此过程,Visual Studio必须以管理员身份运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆