Click here to Skip to main content
13,087,932 members (66,049 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as

Stats

227K views
75 bookmarked
Posted 28 Sep 2011

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

, 22 Nov 2012
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 (Senior)
India India
No Biography provided

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