microsoft / vscode-edge-debug2

This is a VS Code extension which helps you debug your JavaScript Code inside the Edge browser.
Other
37 stars 31 forks source link

Attaching with address: localhost resolves to 127.0.0.1 when browser resolves to [::1] #190

Open pl4nty opened 4 years ago

pl4nty commented 4 years ago

Steps to reproduce:

  1. Configure these options:
      "type": "edge",
      "request": "attach",
      "port": 9222,
      "address": "localhost",
      "trace": true,
      "url": "https://my_excel_online_url",
      "webRoot": "${workspaceFolder}"
  2. Open your site and attempt to attach the debugger
  3. Observe timeout
  4. When "address": "[::1]", issue is resolved

Observed when debugging a locally-hosted yo office Excel add-in sideloaded into Excel Online. localhost:9222/json/list and [::1]:9222/json/list resolve in-browser, but 127.0.0.1:9222/json/list does not.