public bool IsDebugMode() { return((IsDebug || Dev2Logger.ShouldLog(ResourceID) || RemoteInvoke) && !RunWorkflowAsync); }