Click here to Skip to main content
11,417,750 members (47,643 online)
Click here to Skip to main content

Tagged as

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

, 25 Oct 2011 CPOL
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...

Alternatives

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

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...
22 Nov 2012
Tejas Vaishnav
2 alternatives  
Debug or test your Windows Service without installing it...

License

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

Share

About the Author

KeithAMS
Software Developer
United Kingdom United Kingdom
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.150427.4 | Last Updated 25 Oct 2011
Article Copyright 2011 by KeithAMS
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid