问题
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