Using StaticConfiguration.IsRunningDebug