title: Couldnt find a debug adapter descriptor for debug type 'coreclr'(extension might have failed to activate)
body: <p>I'm trying to debug this simple web app.</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Threading.Tasks;
  using Microsoft.AspNetCore.Builder;
  using Microsoft.AspNetCore.Hosting;
  using Microsoft.AspNetCore.Http;
  using Microsoft.Extensions.DependencyInjection;
  using Microsoft.Extensions.Hosting;
  
  namespace HttpCookies
  {
      public class Startup
      {
          // This method gets called by the runtime. Use this method to add services to the container.
          // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
          public void ConfigureServices(IServiceCollection services)
          {
          }
  
          // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
          public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
          {
              app.Run(async (context) =&gt;
              {
                  var cookie = context.Request.Cookies[&quot;MyCoolLittleCookie&quot;];
  
                  if (string.IsNullOrWhiteSpace(cookie))
                  {
                      DateTime now = DateTime.Now;
                      DateTime expires = now + TimeSpan.FromSeconds(15);
                      context.Response.Cookies.Append
                      (
                          &quot;MyCoolLittleCookie&quot;,
                          &quot;Cookie created at: &quot; + now.ToString(&quot;h:mm:ss tt&quot;),
                          new CookieOptions
                          {
                              Path = &quot;/&quot;,
                              HttpOnly = false,
                              Secure = false,
                              Expires = expires
                          }
                      );
                  }
  
                  string response =
                      &quot;&lt;h1&gt;HTTP Cookies&lt;/h1&gt;&quot; +
                      $&quot;&lt;p&gt;This is the cookie value received from browser: \&quot;&lt;strong&gt;{cookie}&lt;/strong&gt;\&quot;.&lt;/p&gt;&quot; +
                      &quot;&lt;p&gt;Refresh page to see current cookie value...&lt;/p&gt;&quot; +
                      &quot;&lt;p&gt;Cookie expires after 15 seconds.&lt;/p&gt;&quot;;
                  await context.Response.WriteAsync(response);
              });
          }
      }
  }
  </code></pre>
  <p>and this is the launch.json</p>
  <pre><code>{
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
          {
              // Use IntelliSense to find out which attributes exist for C# debugging
              // Use hover for the description of the existing attributes
              // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
              &quot;name&quot;: &quot;.NET Core Launch (web)&quot;,
              &quot;type&quot;: &quot;coreclr&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;preLaunchTask&quot;: &quot;build&quot;,
              // If you have changed target frameworks, make sure to update the program path.
              &quot;program&quot;: &quot;${workspaceFolder}/bin/Debug/net5.0/HttpCookies.dll&quot;,
              &quot;args&quot;: [],
              &quot;cwd&quot;: &quot;${workspaceFolder}&quot;,
              &quot;stopAtEntry&quot;: false,
              // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
              &quot;serverReadyAction&quot;: {
                  &quot;action&quot;: &quot;openExternally&quot;,
                  &quot;pattern&quot;: &quot;\\bNow listening on:\\s+(https?://\\S+)&quot;
              },
              &quot;env&quot;: {
                  &quot;ASPNETCORE_ENVIRONMENT&quot;: &quot;Development&quot;
              },
              &quot;sourceFileMap&quot;: {
                  &quot;/Views&quot;: &quot;${workspaceFolder}/Views&quot;
              }
          },
          {
              &quot;name&quot;: &quot;.NET Core Attach&quot;,
              &quot;type&quot;: &quot;coreclr&quot;,
              &quot;request&quot;: &quot;attach&quot;
          }
      ]
  }
  </code></pre>
  <p>and when i try to debug this error shows up</p>
  <p>&quot;Couldnt find a debug adapter descriptor  for debug type 'coreclr'(extension might have failed to activate)&quot;</p>
  <p>What should i do to stop this error? it was working fine but suddenly this error started popping up,
  please help</p>