title: Debug application without admin rights in Visual Studio
body: <p>I have an application that is intended to run without admin rights, but it fails in that scenario. I tried to run my app as administrator, and it runs. But that's not what I want.</p>
  
  <p>What I want is a way to debug my application without administrator privileges, so that I can determine what is causing it to fail when running as a normal user... so that I at least know what is the cause, and possibly make it in a way that runs without admin rights.</p>
  
  <p>Whenever I run Visual Studio 2015, it starts with Administrator privileges. No way to get rid of that <code>(Administrator)</code> in title bar:</p>
  
  <p><a href="https://i.stack.imgur.com/UtPka.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UtPka.png" alt="enter image description here"></a></p>
  
  <p>I have tried <code>runas /netonly /user:User devenv.exe</code> to no avail:</p>
  
  <p><a href="https://i.stack.imgur.com/UtPka.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6QpNB.png" alt="enter image description here"></a></p>
  
  <p>If I try to run VS2015 under another more restricted account, it say that it needs Administrative privileges, and does not run:</p>
  
  <p><a href="https://i.stack.imgur.com/mlgxN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mlgxN.png" alt="enter image description here"></a></p>
  
  <p>Clicking "Cancel the task ad return to Visual Studio" won't return to VS, instead it will close.</p>
  
  <p>The problem is that when I run my application without admin privileges it does not open. No messages. Nothing. But when I try to debug it inside Visual Studio it runs... because VS itself only runs as administrator.</p>
  
  <p>Is there a way to debug without admin rights?</p>