我如何调试outlook addin的函数文件。由于某种原因,添加在线工作但不在桌面客户端上工作。
在过去,我发现桌面客户端不支持某些Javascript标记。所以现在我已经将我的函数文件更改为一个简单的函数文件,只是为了验证在桌面客户端中调用函数。我可以说,在桌面客户端中根本没有调用函数something
。该操作永远挂起。 F12调试工具显示不是目标。
我该如何调试这个函数文件?
功能文件
(function () {
Office.initialize = function (reason) {
};
})();
function doIt(event) {
console.log("Here");
event.completed();
}
的Manifest.xml
...
<ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
<OfficeTab id="appOrgTab">
<Group id="appOrgCmdGroup">
<Label resid="groupLabel"/>
<Control xsi:type="Button" id="appOrgCtrl">
<Label resid="appOrgLabel"/>
<Supertip>
<Title resid="appOrgTitle"/>
<Description resid="appOrgDesc"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="icon16"/>
<bt:Image size="32" resid="icon32"/>
<bt:Image size="80" resid="icon80"/>
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>doIt</FunctionName>
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
<ExtensionPoint xsi:type="Events">
<Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="doIt"/>
</ExtensionPoint>
...
我发现问题出在我的自签名证书上。将我的插件作为任务窗格...我将在窗格中授权证书。但由于没有这样的功能执行窗格,因此阻止了对我的服务器的请求。我安装了有效的证书,现在可以使用了。