title: How to attach to a windows service before it starts?
body: <p>I need to debug the initialization of a Windows Service. I have a method that is called during the service initialization but since this occurs when it starts I have no enough time to attach the process using Visual Studio. Moreover since the service is not started it no appears in the "attach process" window dialog of VS2010.</p>
  
  <p>So what I need is to debug the service by attaching to it process prior its started.
  Is it possible?</p>