You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调试基于事件的Outlook加载项:启动配置问题与断点排查

问题:Outlook事件型加载项断点无法命中的调试配置问题

我正在开发一个由Yeoman生成的基于事件的Outlook加载项,通过onMessageSendHandler操作对外发邮件做细微修改。按照微软官方文档指引在VS Code中调试,但所有断点(包括onMessageSendHandler内的断点)均无法命中。

官方提供的launch.json启动配置如下:

{
  "name": "Direct Debugging",
  "type": "node",
  "request": "attach",
  "port": 9223,
  "protocol": "inspector",
  "timeout": 600000,
  "trace": true
}

该配置存在两个问题:

  • 多处使用不可见的U+202f字符替代普通空格;
  • 在我的VS Code(v1.78.2)中,"protocol"属性被标记为不允许(截图提示:Property protocol is not allowed)。

已修复第一个问题,请问:第二个问题是否是导致断点未命中的原因?如何修复才能让事件操作内的断点被正确命中?


环境信息

  • Windows 10
  • Node.js 18.16.0
  • Visual Studio Code 1.78.2
  • 已安装的VSCode插件:
dbaeumer.vscode-eslint@2.4.0
esbenp.prettier-vscode@9.13.0
ms-azuretools.vscode-azureresourcegroups@0.7.5
ms-azuretools.vscode-azurestorage@0.15.2
ms-azuretools.vscode-docker@1.25.1
ms-edgedevtools.vscode-edge-devtools@2.1.1
ms-python.isort@2022.8.0
ms-python.python@2023.8.0
ms-python.vscode-pylance@2023.5.40
ms-toolsai.jupyter@2023.4.1011241018
ms-toolsai.jupyter-keymap@1.1.0
ms-toolsai.jupyter-renderers@1.0.15
ms-toolsai.vscode-jupyter-cell-tags@0.1.8
ms-toolsai.vscode-jupyter-slideshow@0.1.5
ms-vscode-remote.remote-containers@0.292.0
ms-vscode-remote.remote-wsl@0.78.8
ms-vscode.azure-account@0.11.5
ms-vscode.powershell@2023.5.0
NilsSoderman.batch-runner@1.0.1
redhat.vscode-xml@0.25.0

内容的提问来源于stack exchange,提问作者urig

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.20 09:33:19