【发布时间】:2018-08-08 16:47:18
【问题描述】:
我正在按照教程创建高级 Outlook 插件here (Git the Gist)
以上是一个 node.js-应用程序,它使用 Yeoman 和 Microsoft Office Add-in Project Generator。要简单地启动加载项,只需在根项目文件夹中键入“npm start”即可。
但是:我想在 Visual Studio Code 中调试插件。
当您要调试项目时,VS Code 会自动创建一个launch.json 文件。该文件如下所示:
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\bsconfig.json"
}
]
但是,当我调试时,我收到以下错误:
无法启动程序
'c:\ZTesting\outlooktest\bsconfig.json';环境outFiles属性可能会有所帮助。
那么这些outFiles 真的是问题吗?如果是,它们应该是什么?
并且 - 如果不是 - 调试使用 node.js、Yeoman 和 Microsoft Office Add-in Project Generator 创建的 Web 插件的解决方案是什么?强>?
bsconfig.json 文件如下所示:
{
"ui": {
"port": 3000
},
"server": {
"routes": {
"/node_modules": "node_modules"
}
},
"https": {
"key": "./certs/server.key",
"cert": "./certs/server.crt"
},
"watch": true,
"files": "*.*"
}
【问题讨论】:
标签: node.js visual-studio-code outlook-addin bsconfig