Click here to Skip to main content
Click here to Skip to main content
 
Alternatives (2)

Tagged as

How to Debug or Test your Windows Service Without Installing it...

, 22 Nov 2012 CPOL
Debug or test your Windows Service without installing it...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

25 Oct 2011
KeithAMS
I am writing a service at present and have written a few over the years. What I do now is put all the code in a separate DLL from the start off. My service methods Onstart, OnStop call into the DLL which starts a thread to do the work.For debugging, I have a separate test harness console app...
25 Oct 2011
jim lahey
Along similar lines to KeithAMS, when writing a Windows service, I only use the Windows Service Project as a container to run code that is in one or more referenced assemblies. As far as I'm concerned, if I've got any logic that goes beyond starting and stopping the service in my service...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Tejas Vaishnav
Software Developer
India India
No Biography provided

| | Privacy | Terms of Use | Mobile
Web01 | 2.8.1411023.1 | Last Updated 22 Nov 2012
Article Copyright 2011 by Tejas Vaishnav
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid