Click here to Skip to main content
13,404,408 members (39,602 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


3 bookmarked
Posted 25 Oct 2011

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

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


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...


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


About the Author

Software Developer
United Kingdom United Kingdom
No Biography provided

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