In a Blazor server-side application, you can enable CircuitOptions detailed errors by using the AddServerSideBlazor().AddCircuitOptions() method. This option allows the detailed error information to be displayed in the browser, making it easier to diagnose and fix issues.
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddServerSideBlazor().AddCircuitOptions(e=> {
e.DetailedErrors = true;
});
}
Share with