Debugger.Launch() on windows service in Windows 8

Viewed 3937

After I installed Windows 8 perfectly legit statement like this doesn't work anymore:

#if DEBUG
    Debugger.Launch();
#endif

Service starts ignoring that thing. Yes, I am building the project in a debug mode.

if I change that to a Debugger.Break() - the service just fails, and still there's no dialog for attaching a debugger.

3 Answers
Related