There was an error while loading. Please reload this page.
1 parent 85d7c3f commit b129063Copy full SHA for b129063
1 file changed
Hi3Helper.Core/Classes/SentryHelper/SentryHelper.cs
@@ -117,6 +117,11 @@ public static bool IsEnabled
117
118
public static void InitializeSentrySdk()
119
{
120
+ #if DEBUG
121
+ _isEnabled = false;
122
+ return;
123
+ #pragma warning disable CS0162 // Unreachable code detected
124
+ #endif
125
_sentryInstance =
126
SentrySdk.Init(o =>
127
@@ -164,6 +169,9 @@ public static void InitializeSentrySdk()
164
169
IpAddress = null
165
170
};
166
171
});
172
173
+ #pragma warning restore CS0162 // Unreachable code detected
174
167
175
}
168
176
177
/// <summary>
0 commit comments