locked
How to Detach from Process Without Stopping Windows Service RRS feed

  • Question

  • User-1814217166 posted

    Hello all,

    I setup a windows service project and am testing it by starting the service, attaching the debugger to the process (myservice.exe) and stepping through the code. All is fine until I want to stop debugging by detaching the process. I am using VS 2008 and there is no option for detaching the process as explained on certain blogs on the web, which forces me to stop debugging and hence stop the windows service as well.

    Under Debug menu, I see Attach to Process option and then in the Attach to Process window there is only Attach button and no Detach button. I remember it used to be in VS 2003 but not anymore. Perhaps I am missing something?

    Thanks in advance for help.

     

    Tuesday, May 5, 2009 10:14 AM

All replies

  • User-1814217166 posted

    Just to add to the above post ... I navigated from Debug > Windows > Processes window but the Detach Process icon on the window is disabled and also upon right clicking my process/win service, the option is grayed out for Detach from Process. Under the Debugging column it says Managed, Native.

     Any ideas how to resolve this?

    Tuesday, May 5, 2009 11:43 AM