Q:

How do I turn on CircuitOptions.DetailedErrors?

0

This code will help you to understand how to turn on CircuitOptions.DetailedErrors.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

In Blazor 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;
    });
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now