To debug a window service you can make use of below property of Environment class:
If you are a .NET Developer then you must know that there are mainly two build configurations.