title: .NET Core Web Application with AngularJS - JS Debug not working for JS files in VS Code
body: <ul>
  <li>VS Code v1.64.2</li>
  <li>.NET Core v3.1</li>
  <li>AngularJS v1.8.2</li>
  </ul>
  <p>I am trying to use Visual Studio Code for debugging .NET Core web application which is using AngularJS. I am able to debug breakpoints placed inside .CS files once I generate .NET: Generate assets for build and debug which creates launch and tasks json files inside .vscode folder.</p>
  <p>But the debug points placed in js files of angularJS controller and services are not hitting  eventhough application is running.</p>
  <p>Am I missing some settings to be enabled for debug js files while running .NET Core in VS Code?</p>
  <p>//// Update Feb 15 2022
  I tried with the below launch.json which attaches a Chrome browser launch with the .NET Core build + launch.</p>
  <p>Now I am able to debug both C# and Javascript in VSCode. But only issue I am facing: its opening 2 browser instances with localhost:5000. I had to manually close 1 instance which is not attached with debugger.</p>
  <p>Is this correct way to debug both JS &amp; C# files which are inside .NET Core web application using AngularJS.</p>
  <pre><code>{
      &quot;compounds&quot;: [
          {
              &quot;name&quot;: &quot;.Net+Browser&quot;,
              &quot;configurations&quot;: [ &quot;.NET Core Launch (web)&quot;, &quot;Launch Chrome&quot; ]
          }
      ],
      &quot;configurations&quot;: [
          {
              &quot;name&quot;: &quot;Launch Chrome&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;type&quot;: &quot;chrome&quot;,
              &quot;url&quot;: &quot;http://localhost:5000&quot;,
              &quot;webRoot&quot;: &quot;${workspaceFolder}/wwwroot&quot;,
              &quot;runtimeArgs&quot;: [
                  &quot;--disable-web-security&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/netcoreapp3.1/PROJECTNAME.dll&quot;,
          &quot;args&quot;: [],
          &quot;cwd&quot;: &quot;${workspaceFolder}&quot;,
          &quot;stopAtEntry&quot;: false,
          &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>