title: Run a Windows Service as a console app
body: <p>I want to debug a Windows service but it pops an error message saying </p>
  
  <blockquote>
    <p>Cannot start service from the command
    line or a debugger. A windows service
    must be installed using
    installutil.exe and then started with
    the Server explorer, windows services
    Administrative tools or the NET start
    command.</p>
  </blockquote>
  
  <p>I don't really have any idea about this error.....</p>
  
  <p><a href="https://i.stack.imgur.com/p445y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/p445y.png" alt="enter image description here"></a></p>