Learn a simple trick that makes it easy to debug a .NET application at start-up using Debugger.Launch()
Related Docs:
Creating Windows Service - https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service
Debugger.Launch() - https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debugger.launch