I\'ve got a windows service written in C#. I\'ve read all the google threads on how to debug it, but I still can\'t get it to work. I\'ve run \"PathTo.Net
you can debug it by attaching the debugger to the process. You can do this by either adding a line to the startup of your program:
Debugger.Launch ();
after adding the using statement:
using System.Diagnostics;
you will either need to put that in a conditional block or remove it when you are done debugging
or by running the service and then attaching to the process manually from the IDE: Debug->Attach to process..