1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-07 11:03:23 +00:00

add service debug mode

This commit is contained in:
Kyle Spearrin
2017-05-16 12:58:36 -04:00
parent e2e769bb6f
commit 89f16609dd

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
@@ -11,10 +12,18 @@ namespace Service
{
static void Main()
{
DebugMode();
ServiceBase.Run(new ServiceBase[]
{
new Service()
});
}
[Conditional("DEBUG")]
private static void DebugMode()
{
Debugger.Launch();
}
}
}