Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug application as a different user in VS2008

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 ?

like image 648
Retrocoder Avatar asked May 21 '26 21:05

Retrocoder


2 Answers

In Visual Studio 2010 you can use VSCommands to debug with different permissions: Maybe it's time to upgrade ;)

alt text

like image 100
Registered User Avatar answered May 25 '26 13:05

Registered User


Right click on the Visual Studio icon and select Run as...:

alt text

There's also the runas.exe command you could use to start Visual Studio under a different account.

like image 41
Darin Dimitrov Avatar answered May 25 '26 14:05

Darin Dimitrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!