调试Outlook外接程序桌面 [英] Debugging Outlook Add-in Desktop

查看:156
本文介绍了调试Outlook外接程序桌面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用yeoman和Generator-office开发用于Outlook的加载项,以将电子邮件及其附件保存到另一项服务中.

I'm currently developing an Add-in using yeoman and generator-office for Outlook to save an email and its attachments to another service.

Outlook版本:MS Office Professional Plus 2016 v.16.0.48.49.1000

Outlook Version: MS Office Professional Plus 2016 v.16.0.48.49.1000

我能够通过转到文件->管理加载项->(打开Outlook WebApp扩展页面)->从文件添加->选择我的manifest.xml来加载该加载项.

I am able to sideload the add-in by going to File->Manage Add-ins->(Outlook webapp extensions page opens)->Add from file->Select my manifest.xml.

然后我运行npm run start,我得到了:

Then I run npm run start and I get:

App type: desktop
Enabled debugging for add-in 17717569-bd61-4c6a-b99d-ca55924a2916. Debug method: 0
Starting the dev server... (webpack-dev-server --mode development)
The dev server is running on port 3000. Process id: 9660
Sideloading the Office Add-in...
Error: Unable to start debugging.
Error: Unable to sideload the Office Add-in.
Error: Sideload is not supported.

该加载项被侧面加载,我可以使用它,但由于无法附加调试器,因此被阻止.

The add-in is sideloaded and I'm able to use it, but without being able to attach a debugger I'm blocked.

有任何已知的解决方案吗?

Any known solutions for this?

我遵循了 https://上的指南docs.microsoft.com/en-us/outlook/add-ins/quick-start .

@MS团队如果无法使用Yeoman添加调试器,是否可以使用Visual Studio方法?

@MS Team If it is not possible to add a debugger using Yeoman, is it possible using the Visual Studio approach ?

推荐答案

您可以运行开发服务器(npm run dev-server),而不要使用"npm start",因为Outlook不支持横向加载.开发服务器运行后,您可以使用上述步骤加载外接程序.加载项在Outlook中运行后,您可以使用浏览器开发工具对其进行调试.如果您使用的是Windows 10版本1903或更高版本,则应使用Edge WebView,并且可以使用Windows 10应用商店中的Edge DevTools Preview对其进行调试.对于以前版本的Windows(使用Internet Explorer WebView),将使用F12开发工具进行调试.

You can run the dev server (npm run dev-server) rather than use "npm start" because Outlook does not support sideloading. Once the dev server is running, you can load the add-in using the steps you mentioned. Once the add-in is running in Outlook, you can use the browser dev tools to debug it. If you are on Windows 10 Version 1903 or later, it should be using the Edge WebView, and you can use the Edge DevTools Preview from the Windows 10 Store to debug it. For previous version of Windows, where the Internet Explorer WebView is being used, the F12 dev tools are used to debug.

这篇关于调试Outlook外接程序桌面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆