File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Razor" >
22
33 <PropertyGroup >
4- <Version >9.6.4-beta05 </Version >
4+ <Version >9.6.4-beta06 </Version >
55 </PropertyGroup >
66
77 <ItemGroup >
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ protected override async Task OnErrorAsync(Exception exception)
6868 /// <param name="builder"></param>
6969 protected override void BuildRenderTree ( RenderTreeBuilder builder )
7070 {
71+ #if DEBUG
72+ // DEBUG 模式下显示异常堆栈信息到 UI 页面方便开发人员调试
7173 if ( OnErrorHandleAsync == null )
7274 {
7375 var ex = CurrentException ?? _exception ;
@@ -77,6 +79,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
7779 builder . AddContent ( 0 , ExceptionContent ( ex ) ) ;
7880 }
7981 }
82+ #endif
8083 builder . AddContent ( 1 , ChildContent ) ;
8184 }
8285
You can’t perform that action at this time.
0 commit comments