Compile your Windows Service in debug mode. After install it with
installutil and launch it. In Visual Studio, press Ctrl + Alt + P, select
your process and press "Attach" button. Now you can debug it. Put break
point in your code and when your windows service treat this line VS.NET
suspend the service on it.