title: Unable to display detailed startup error with Blazor
body: <p>In my Blazor-server app, one of the injected services will perform some system checking and throw an exception if the checking failed. The plan is to use this exception to remind the programmers that a certain condition is needed for the app to run correctly. However, Blazor simply shows</p>
  
  <blockquote>
    <p>Error: The circuit failed to initialize.</p>
  </blockquote>
  
  <p>in the browser console, and the message of my exception is nowhere to be found. Also, Visual Studio does not break on my exception in debug mode with the default breaking settings, supposedly because Blazor caught my exception. Therefore the only way I found so far that could actually display my exception is to change the breaking setting to "break on all runtime exceptions", but I don't think this is good enough since the future programmers on this project might not know it.</p>
  
  <p>So is there any way I can configure Blazor to display the startup exception details or to stop catching my exceptions? I've tried</p>
  
  <pre class="lang-cs prettyprint-override"><code>services.AddServerSideBlazor(options =&gt; {
      options.DetailedErrors = true;
  });
  </code></pre>
  
  <p>but it's not helping. I don't think it's relevant to my case here.</p>