I want to debug a service written in C# and the old fashioned way is just too long. I have to stop the service, start my application that uses the service in debug mode (Vis
I tend to have either a config setting or use a directive for debug builds:
#if DEBUG Debugger.Break(); #endif
or
if(Settings.DebugBreak) Debugger.Break();
I put that in the OnStart method of the service component. Then you are prompted automatically and attached to the process.