Search code examples
javascriptoffice-jsoutlook-web-addins

Manipulate Office Add-In variable in Browser console


I've written an Outlook web addin, and I wan't to enable extended diagnostics in the browser console.

If something goes wrong I wan't to set the diagnostic level on my Logger class.

I assign the logger class to a variable declared in a script block in the addin html file

<script>
    var Logger;
//...

However I can't access (or find) this variable from the console when running in the Outlook Web Application.


Solution

  • As commenter said. I was in the Wrong Context. Setting the console context to the iFrame was the solution.