July 16, 2014

Debugging windows service in .NET without process attachement

This concept is not developed by me. I got it over the net while working with my windows service and found really good. Therefore, I wish to share it with you. Hope you will love it and can debug your windows service without attaching any process. The complete article can be read here.

The same code, given below, I have pasted in Program.cs and I could debug my service as a normal application.