Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator

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

like image 485
user355710 Avatar asked Jun 01 '10 18:06

user355710


1 Answers

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"

like image 184
spoulson Avatar answered Nov 15 '22 09:11

spoulson