Hi,
I have a windows service where I use System.Diagnostics.Debugger.Launch(); to debug the service. It worked on VS 2010 Pro RC, not on the express edition...
Is there a way to debug a windows service with express edition ?
Thanks in advance
Hi,
I have a windows service where I use System.Diagnostics.Debugger.Launch(); to debug the service. It worked on VS 2010 Pro RC, not on the express edition...
Is there a way to debug a windows service with express edition ?
Thanks in advance
I wasn't aware that you could do that. The way that I normally do it is that I add some command line options to the service, so if it's started as [servicename].exe -c
it starts as a normal executable and then I just set -c as the startup parameter in Visual Studio.
So in my main I've got something similar to:
if(IsConsole)
ExecuteTheProcess();
else
{
ServiceBase[] servicesToRun = { mew MyService(); }
ServiceBase.Run(servicesToRun);
}