Though token+offset is useful for certain scenarios, they might not be usable for majority of scenarios. So disabling them by default.
if (s_showILOffset < 0) return false;
if (s_showILOffset > 0) return true;
- bool isSwitchEnabled = AppContextConfigHelper.GetBooleanConfig("Switch.System.Diagnostics.StackTrace.ShowILOffsets", true);
+ // Disabled by default.
+ bool isSwitchEnabled = AppContextConfigHelper.GetBooleanConfig("Switch.System.Diagnostics.StackTrace.ShowILOffsets", false);
s_showILOffset = isSwitchEnabled ? 1 : -1;
return isSwitchEnabled;