Excel Add In - Where does console.log output it's message - NodeJS

时光总嘲笑我的痴心妄想 提交于 2021-02-09 05:00:27

问题


I am trying to create an Excel AddIn with JavaScript API. But I don't understand where "console.log" outputs their messages. All Microsoft documentations are full with console.log examples, but it is not explained where console.log() outputs the messages. I have found a similar post on stackoverflow, but these refer to visual studio console log. I am writing my AddIn with nodeJs on Mac, so a solution for visual studio is no option for me.

I have searched the web. I have searched through all Excel options. I have also searched through the Excel Developer tab, but I can't find anything.

I am using Office 2016 (up to date) on Mac. My AddIn is coded with jQuery.

Has anyone an idea?

EDIT

I have created my ExcelAddin in NodeJS. Therefore I have installed yo and office-generator npm install -g yo generator-office . Then I have ran the command yo office and selected jQuery as library. The sample AddIn works.


回答1:


defaults write com.microsoft.Excel OfficeWebAddinDeveloperExtras -bool true

After entering that ^ in a terminal, when you right click your add-in, you'll have the option to Inspect Element (aka Safari Web Inspector). The console tab will show all the logged messages from console.log() statments.



来源:https://stackoverflow.com/questions/50434202/excel-add-in-where-does-console-log-output-its-message-nodejs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!