调试基于事件的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
相关产品推荐
相关产品推荐

