Sometimes, You may find that window service's executable has been deleted but the service is still present in service viewer.
To debug a window service you can make use of below property of Environment class: