An alternative approach for turning on detailed errors can also be found in this answer, which includes this code:services.AddServerSideBlazor().AddCircuitOptions(options => { options.DetailedErrors = true; });然后可以扩展此方法,以包括检查代码是否在开发环境中运行This approach can then be expanded to include a check for whether the code is being run in the development environment services.AddServerSideBlazor().AddCircuitOptions(o =>{ if (_env.IsDevelopment()) //only add details when debugging { o.DetailedErrors = true; }});为在下面的@Eonasdan回答中突出显示 这篇关于如何打开CircuitOptions.DetailedErrors?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-25 17:03