Live Chat Icon For mobile
Live Chat Icon

How do I turn on CircuitOptions.DetailedErrors?

Platform: Blazor| Category: General

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

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.