protected override void OnStart(string[] args)
{
// Only use this code in Debug mode.
#if DEBUG
List<string> arguments = new List<string>(args);
if (arguments.Exists((arg) => arg.Equals("DEBUG",
StringComparison.InvariantCultureIgnoreCase)))
{
// Launch Debugger if DEBUG argument is provided.
System.Diagnostics.Debugger.Launch();
}
#endif
}
No comments:
Post a Comment