OfficeDev / vscode-debugger-extension-for-office-addins

VS Code extension to allow for debugging Office Add-ins in VS Code
19 stars 9 forks source link

No longer works at all: ECONNREFUSED 127.0.0.1:9222 every time #28

Closed readnotify closed 3 years ago

readnotify commented 3 years ago

I'm trying to attach to Outlook (Desktop, windows), but nothing at any point is opening any port 9222 - so the above error seems impossible to overcome.

Obviously, this is OUTLOOK.EXE - so I can't just "use a different browser" to solve this problem - it's not a browser.

I've re-followed all instructions on this page, many times, including reboots - it never works. I've got all the current versions of everything installed as of now (August 2021).

millerds commented 3 years ago

The instruction here are correct for legacy Edge, but the stuff that goes in the launch.json file is different when it comes to chromium based Edge. To attach to chromium based Edge use this in launch.json:

{
  "name": "Attach to Office Add-in (Edge Chromium)",
  "type": "edge",
  "request": "attach",
  "useWebView": "advanced",
  "port": 9229,
  "timeout": 600000,
  "webRoot": "${workspaceRoot}",
  "trace": "verbose"
}
millerds commented 3 years ago

Also note that new projects generated from 'yo office' have all of this configuration information already in launch.json