I have an application that works fine when run with administrator privileges. When run by a user it has problems reading from the Event Log. I would like to run the code in the debugger but not with my administrator settings. Is this possible in Visual Studio 2008 ?
Asked
Active
Viewed 3,640 times
2 Answers
2
Right click on the Visual Studio icon and select Run as...
:
There's also the runas.exe command you could use to start Visual Studio under a different account.

Darin Dimitrov
- 1,023,142
- 271
- 3,287
- 2,928
-
@Joshua, yes, that's why I proposed to run Visual Studio under a different account. The `runas` command allows you to specify any user. Didn't you understand my answer? – Darin Dimitrov Sep 05 '10 at 10:06
-
1@Joshua: Darin wrote absolutly correct information. If you not yet knows RunAs I recommend you to read about it. It can be very helpfull sometimes. Moreover be not so quickly with downvoting of other questions. It's a bad habit. – Oleg Sep 05 '10 at 10:35
-
Is there's anyway of doing this w/o restarting VS? – Nissim Sep 05 '10 at 12:45
-
@Nissim, yes, look at [this thread](http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/eeba26cb-2336-4a80-99f4-ca4167d0758c) – Darin Dimitrov Sep 05 '10 at 14:46
-
After looking at the question again (many, many times) I realized my answer would have been correct in the direction I read it as going, but the asker was wanting to go the other direction. Sorry about that. :) – Joshua Sep 05 '10 at 23:19
-
Old answer, I know but I needed to say it really is helpful! :-D – Tipx Jan 13 '12 at 20:25
2
In Visual Studio 2010 you can use VSCommands to debug with different permissions: Maybe it's time to upgrade ;)

Registered User
- 1,630
- 14
- 11
-
I didn't see Debug as different user options in VS2013. I tried to follow the links but their site has a lot of 404 errors (as of this posting). I assume that is a paid feature. I won't down vote but I am tempted to. – Robert M. Sep 03 '14 at 18:04