Microsoft Office加载项调试器的可视代码找不到URL

问题描述

我刚刚下载了VS代码扩展Microsoft Office加载项调试器。我按照说明进行操作,但无法正常工作。总会弹出错误消息:

enter image description here

当我查看我的lauchn.json文件时,我看到列出了该URL:

{
    "type": "office-addin","request": "attach","name": "Attach to Office Add-ins","port": 9222,"trace": "verbose","url":  "https://localhost:3000/taskpane.html?_host_Info=HOST$Win32$16.01$en-US$$$$0#","webRoot": "${workspaceFolder}","timeout": 5000
    }

我不知道URL中附加的“]”是什么意思。我还尝试将邮件发送到Microsoft随外接程序提供的电子邮件地址(opencode@microsoft.com),但像往常一样无济于事。任何帮助将不胜感激。

非常感谢。

解决方法

launch.js文件中,您只需要按照消息框中的说明将HOST替换为Excel。例如,它应如下所示:

{
    "type": "office-addin","request": "attach","name": "Attach to Office Add-ins","port": 9222,"trace": "verbose","url":  "https://localhost:3000/taskpane.html?_host_Info=Excel$Win32$16.01$en-US$$$$0","webRoot": "${workspaceFolder}","timeout": 5000
    }

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...