Posts in category debugging

Debugging a Windows Service

This may be blatantly obvious for most developers, but just to save someone the time to figure this out by himself: To attach the debugger to your process put some sleep into the service's Main method so you got enough time to attach before whatever may be causing an exception

System.Threading.Thread.Sleep(10000);