Javascript Office插件中的控制台日志 [英] Console log in Javascript Office Addin

查看:87
本文介绍了Javascript Office插件中的控制台日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Javascript Web Office插件 中有关于 "console.log" 的问题.目前,我正在使用Javascript Word Addin,无法对其进行故障排除,因为我不知道"console.log"输出的发送位置.在Microsoft网站上,有很多示例,其中包含"console.log",但它们从未指定如何检查这些输出.

I have a question about "console.log" in Javascript Web Office Addins. Currently I am working on Javascript Word Addin and can't troubleshoot it, because I don't understand where the "console.log" output is sent. On Microsoft site there are a lot of examples, that contain contain "console.log", but they never specify how to check these outputs.

所以,问题是如何查看此"console.log"输出.我没有使用Visual Studio.

So, the question is how can I see this "console.log" output. I am not using Visual Studio.

BR, 阿列克谢

推荐答案

当您说不使用Visual Studio时,是否表示您没有使用Visual Studio模板?还是您实际上没有在计算机上安装Visual Studio(如果是的话,我是否建议您安装它-甚至只是免费版/社区版)?

When you say you're not using Visual Studio, do you mean that you're not using the Visual Studio template? Or that you physically don't have Visual Studio on the machine (if so, might I recommend you install it -- even just the free/community edition)?

一旦有了,

  • 关闭Internet Explorer的所有实例
  • 转到Visual Studio->调试->附加到进程
  • 请确保选择附加到":"脚本代码"
  • 选择所有iexplore.exe实例
  • 点击附加"
  • Close all instances of Internet Explorer
  • Go to Visual Studio -> Debug -> Attach to process
  • Be sure to select "Attach to": "Script code"
  • Select all the iexplore.exe instances
  • Click "Attach"

您现在应该获得完整的调试经验,并带有控制台输出("JavaScript控制台"窗口;如果没有默认显示,则使用快速启动(ctrl-Q)来启动它),DOM Explorer(再次,如果看不到,请使用快速启动").

You should now get a full debugging experience, complete with console output ("JavaScript console" window; use the Quick Launch (ctrl-Q) to launch it if it doesn't display be default), DOM Explorer (again, use Quick Launch if you don't see it), and more.

〜MSFT Office可扩展性团队的开发人员Michael Zlatkovsky

~ Michael Zlatkovsky, developer on Office Extensibility team, MSFT

这篇关于Javascript Office插件中的控制台日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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