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:
- 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#.
- Start the service.
- Open your project in Visual Studio.NET.
- And then cull processes from the Debug carte. The following windows will announced.
- Click on "Show organisation processes".
- 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.
- Clicking Attach will show "Attach to Process" dialog box.
- Choosing the advisable option will bring the application in debug style.
- Insert breakpoints to debug the service.
- 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