title: google chrome debugger in visual studio "site cannot be reached localhost refused to connect"
body: <p>I am currently trying to open a html file written in visual studio in google chrome browser and run Google Chromes debugging extension in visual studio</p>
  <p>the following is the .json file and i am using the first configuration</p>
  <pre><code> {
  &quot;version&quot;: &quot;0.2.0&quot;,
  &quot;configurations&quot;: [
      {
          &quot;name&quot;: &quot;Launch Chrome against localhost, with sourcemaps&quot;,
          &quot;type&quot;: &quot;chrome&quot;,
          &quot;request&quot;: &quot;launch&quot;,
          &quot;url&quot;: &quot;http://localhost:8080&quot;,
          &quot;sourceMaps&quot;: true,
          &quot;webRoot&quot;: &quot;${workspaceRoot}&quot;
      },
      {
          &quot;name&quot;: &quot;Attach to Chrome, with sourcemaps&quot;,
          &quot;type&quot;: &quot;chrome&quot;,
          &quot;request&quot;: &quot;attach&quot;,
          &quot;port&quot;: 9222,
          &quot;sourceMaps&quot;: true,
          &quot;webRoot&quot;: &quot;${workspaceRoot}&quot;
      }
  ]
  </code></pre>
  <p>but when it open in google chrome i recieve the error</p>
  <blockquote>
  <p>This site can’t be reached</p>
  <p>localhost refused to connect.</p>
  </blockquote>