Debugging a Windows Service

This article is primarily focused on Windows Services in debug mode so that we can debug the service to check the flow of code. In this article, we will not learn the process of debugging a Windows Service.

Step 1

Open Visual Studio and choose the Windows Service template and provide a nice name for the application.

Step 2

Right-click on the Service1 design form. And add an installer. If you don't have any use for that then skip this step. Installers are used when you will install your service, this will help you to run your service.

Something else you may change is the name of the service and, depending on your preferences, for that you click on the property option and do the change.