<t>If I want to quickly debug the service, I just drop in a Debugger.Break() in there. When that line is reached, it will drop me back to VS. Don't forget to remove that line when you are done.<br/>
<br/>
UPDATE: As an alternative to #if DEBUG pragmas, you can also use Conditional("DEBUG_SERVICE") attribute.<br/>
<br/>
[Conditional("DEBUG_SERVICE")]<br/>
private static void DebugMode()<br/>
{<br/>
Debugger.Break();<br/>
}<br/>
<br/>
```<br/>
<br/>
On your `OnStart`, just call this method:<br/>
<br/>
```<br/>
public override void OnStart()<br/>
{<br/>
DebugMode();<br/>
/* ... do the rest */<br/>
}<br/>
<br/>
```<br/>
<br/>
There, the code will only be enabled during Debug builds. While you're at it, it might be useful to create a separate Build Configuration for service debugging.</t>