banner



How To Debug A Service Application Visual Studio

  • Updated date Feb 06, 2006
  • 309.9k
  • three

The compiled executable file that a service application project creates must be installed on the server before the project can office in a meaningful fashion. You cannot debug or run a service awarding by pressing F5 or F11. Here we are going to come across how to debug our own windows services.

The compiled executable file that a service application project creates must exist installed on the server before the project tin function in a meaningful fashion. You cannot debug or run a service awarding by pressing F5 or F11; you cannot immediately run a service or step into its code. Instead, you lot must install and start your service, and then attach a debugger to the service's process.

Here we are going to see how to debug our own windows services.

Steps for debugging windows services:

  1. Install your service. In my case it is the service which I created and installed equally mentioned in my previous article i.e. Birthday Wish Scheduler in C#.
  2. Start the service.
  3. Open your project in Visual Studio.NET.
  4. And then cull processes from the Debug carte. The following windows will announced.

  5. Click on "Show organisation processes".
  6. From the available processes, wait for the process created by your service. The procedure name will exist same as the executable file of the service.

  7. Clicking Attach will show "Attach to Process" dialog box.

  8. Choosing the advisable option will bring the application in debug style.
  9. Insert breakpoints to debug the service.
  10. From the service control manager, use unlike options like commencement, stop etc. to debug it.

Until adjacent time.....Happy .NETing!

How To Debug A Service Application Visual Studio,

Source: https://www.c-sharpcorner.com/article/debugging-windows-services-in-C-Sharp-and-net/

Posted by: readybunpremong.blogspot.com

0 Response to "How To Debug A Service Application Visual Studio"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel