Live Chat Icon For mobile
Live Chat Icon

How do I turn on CircuitOptions.DetailedErrors?

Platform: Blazor| Category: General

In Blazor server server side application, CircuitOptions detailed error is shown using AddServerSideBlazor().AddCircuitOptions() method. This displays the details of the circuit error in the browser. Find the code snippet to enable the circuit option.

public void ConfigureServices(IServiceCollection services)
{
    services.AddRazorPages();
    services.AddServerSideBlazor().AddCircuitOptions(e=> {
        e.DetailedErrors = true;
    });
}

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

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

Please submit your question and answer.