diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index 27feba134e6..19b4dc87cca 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@  - 9.6.4-beta05 + 9.6.4-beta06 diff --git a/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs b/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs index f3e5beaacf0..f84021837c2 100644 --- a/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs +++ b/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs @@ -68,6 +68,8 @@ protected override async Task OnErrorAsync(Exception exception) /// protected override void BuildRenderTree(RenderTreeBuilder builder) { +#if DEBUG + // DEBUG 模式下显示异常堆栈信息到 UI 页面方便开发人员调试 if (OnErrorHandleAsync == null) { var ex = CurrentException ?? _exception; @@ -77,6 +79,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) builder.AddContent(0, ExceptionContent(ex)); } } +#endif builder.AddContent(1, ChildContent); }