question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Run analyzers in debug mode

See original GitHub issue

Problem 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:open
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
javiercncommented, Feb 5, 2020

@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.

0reactions
Rick-Andersoncommented, Jul 31, 2020

Here’s another Order of UseStatusCodePagesWithReExecute and UseRouting shouldn’t matter #19374

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found