Difficulties debugging add-in

不羁岁月 提交于 2019-12-24 14:08:38

问题


I'm using Atom as an editor (I really dislike Visual Studio) to develop an Excel add-in. The project was generated using yo office, and I followed the contents of this page to get started (I'm using React). I added a console.log to check the contents of a variable but couldn't find the output, so I searched and found this question, with the suggestion to attach a VS debugger. MS has some documentation on how to do that here.

However, after doing that, not only do I not see the contents of console.log, the Excel file I have open with the add-in sideloaded becomes unresponsive, to the point where I can't even bring it forward if it's behind other applications, or click on it at all. I can't find further explanation on why this is happening or how to fix it.

My questions: How/where can I see the information being logged? And do I need VS to debug, or is there another tool I can use?

EDIT: Looking at the VS debugger on the Output window, it's slowly loading a lot of resources. On the bottom red bar, the word "Ready" flashes inconsistently. If I leave it alone for 5+ minutes it finally finishes loading and Excel becomes responsive again (actually, this happened once. The second time I tried this, Excel stayed unresponsive), but I still don't see the contents of console.log

EDIT 2: Sorry for editing this a lot, but I found out that after loading all resources (again, 5+ min), if I click on "Continue" on the top toolbar, Excel becomes responsive and usable again. Still no console.log output though.

来源:https://stackoverflow.com/questions/55146089/difficulties-debugging-add-in

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