Feature request: Run analyzers in debug mode
See original GitHub issueProblem motivation: #18768, app.UseSpa
was in the wrong order.
Add app.UseRunAllAnalyzers
to template code to detect middleware order and other problems.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseDatabaseErrorPage();
app.UseRunAllAnalyzers(); // run middleware order check and other checks
}
else
{
app.UseExceptionHandler("/Error");
app.UseHsts();
}
...
UseRunAllAnalyzers
could be updated frequently to add more checks.
See https://twitter.com/davidfowl/status/1228902288627912705 where @davidfowl
requests this.
cc @javiercn
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Disable source code analysis for .NET - Visual Studio
Learn how to turn off Visual Studio source code analysis in . ... To disable source analysis at build time, uncheck the Run...
Read more >Debug Workflow
This is a handy feature that aids in troubleshooting an Analytic App or Macro workflow. When the test is run, a Debug workflow...
Read more >Debugging your automations
Using the Debugger tool ... From the Automation page, select and edit the bot that you want to debug. You can access the...
Read more >Studio - Debugging Actions
This action comes in handy for skipping analysis of large containers ... The selected speed step runs the debugging process slower than the...
Read more >Cannot debug net6.0-macos Apps - Developer Community
2 I tried to disable “.Net Core Debugger” extension (Main menu (Visual Studio) - Extensions - Installed). After this the VS is able...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Rick-Anderson thanks for following up.
@mkArtakMSFT I’m moving this to next milestone planning so that we can look at it then and decide.
Here’s another Order of UseStatusCodePagesWithReExecute and UseRouting shouldn’t matter #19374