What is the usage of #if DEBUG pre-processor directive in C#? When must we use this?
#if DEBUG
it also comes in handy when testing windows services. You can put in an #if DEBUG to start your process manually, so you don't have to install the service and attach to it to debug.