Console log in Javascript Office Addin

后端 未结 6 2420
生来不讨喜
生来不讨喜 2020-12-15 19:41

I have a question about \"console.log\" in Javascript Web Office Addins. Currently I am working on Javascript Word Addin

6条回答
  •  借酒劲吻你
    2020-12-15 20:11

    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)?

    Once you have that:

    • 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"

    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.

    ~ Michael Zlatkovsky, developer on Office Extensibility team, MSFT

提交回复
热议问题