MicrosoftDX / Vorlonjs

A new, open source, extensible, platform-agnostic tool for remotely debugging and testing your JavaScript. Powered by node.js and socket.io
http://www.vorlonjs.com
Other
2.92k stars 258 forks source link

Mac Outlook Add-in: Javascript runtime errors are not being captured and reported #373

Open ghost opened 8 years ago

ghost commented 8 years ago

With the most recent release, I was able to get the Vorlon debugger to work with my Mac Outlook Add-in using this tutorial. I'm able to view the DOM and execute javascript code in vorlon console but vorlon is not reporting any runtime javascript errors. (ie: var referenceError = this.object.doesnt.exist.so.this.should.throw.an.error).

Vorlon is able to report this same runtime error if I use a Chrome browser to execute the same page. Perhaps this bug is specific to the webview that Mac Outlook uses?

meulta commented 8 years ago

Hello,

Normally the latest version from npm or from the dev/master branch should have this fixed. Can you try this page on safari and have a look at the error logged in safari developer Tools ?

ghost commented 8 years ago

Thanks @meulta for the quick response. This issue exist on Safari 9.1.1 as well. I can clearly see the runtime error in Safari's debugger tool but not in Vorlon.

For what it's worth, Vorlon are showing these error logs in the beginning of the debug session in red. transition superseded transition prevented transition aborted transition failed Here's a screenshot image I'm not sure what these error means but I'm hoping they might be useful to you.

Let me know if you need anything from me.

meulta commented 8 years ago

Hm, they are not... First time I see this :D

Can you give me more information about you setup ? What plugins are activated on your Vorlon.js instance?

Thank you a lot and really sorry for the trouble :)

ghost commented 8 years ago

Thanks for the help @meulta.

Windows: Windows 10 Pro Build 10586.494 Node on Windows: v4.2.2 Vorlon on Windows: 0.3.0

Mac: OS X El Capitan Version 10.11.5 Microsoft Outlook on Mac: 15.23 (160611)

I'm using the default plugins and I have enabled the Office plugin. Here's my Server/config.json

{
    "baseURL": "",
    "useSSLAzure": false,
    "useSSL": true,
    "SSLkey": "cert/server.key",
    "SSLcert": "cert/server.crt",
    "activateAuth": false,
    "username": "",
    "password": "",
    "port": 1337,
    "enableWebproxy": true,
    "baseProxyURL": "",
    "proxyPort": 5050,
    "proxyEnvPort": false,
    "vorlonServerURL": "",
    "vorlonProxyURL": "",
    "plugins": [
        {
            "id": "DOM",
            "name": "Dom Explorer",
            "panel": "top",
            "foldername": "domExplorer",
            "enabled": true
        },
        {
            "id": "OBJEXPLORER",
            "name": "Obj. Explorer",
            "panel": "top",
            "foldername": "objectExplorer",
            "enabled": true,
            "nodeCompliant": true
        },
        {
            "id": "XHRPANEL",
            "name": "XHR",
            "panel": "top",
            "foldername": "xhrPanel",
            "enabled": true,
            "nodeCompliant": true
        },
        {
            "id": "BABYLONINSPECTOR",
            "name": "Babylon Inspector",
            "panel": "top",
            "foldername": "babylonInspector",
            "enabled": false
        },
        {
            "id": "WEBSTANDARDS",
            "name": "Best practices",
            "panel": "top",
            "foldername": "webstandards",
            "enabled": true
        },
        {
            "id": "NETWORK",
            "name": "Network Monitor",
            "panel": "top",
            "foldername": "networkMonitor",
            "enabled": true
        },
        {
            "id": "RESOURCES",
            "name": "Resources Explorer",
            "panel": "top",
            "foldername": "resourcesExplorer",
            "enabled": true
        },
        {
            "id": "UNITTEST",
            "name": "Unit Test",
            "panel": "top",
            "foldername": "unitTestRunner",
            "enabled": true
        },
        {
            "id": "UWP",
            "name": "UWP apps",
            "panel": "top",
            "foldername": "uwp",
            "enabled": false
        },
        {
            "id": "NGINSPECTOR",
            "name": "Ng. Inspector",
            "panel": "top",
            "foldername": "ngInspector",
            "enabled": false
        },
        {
            "id": "DEVICE",
            "name": "My Device",
            "panel": "top",
            "foldername": "device",
            "enabled": true
        },
        {
            "id": "OFFICE",
            "name": "Office Addin",
            "panel": "top",
            "foldername": "office",
            "enabled": true
        },
        {
            "id": "NODEJS",
            "name": "NodeJS",
            "panel": "top",
            "foldername": "nodejs",
            "enabled": false,
            "nodeCompliant": true,
            "nodeOnly": true
        },
        {
            "id": "CONSOLE",
            "name": "Interactive Console",
            "panel": "bottom",
            "foldername": "interactiveConsole",
            "enabled": true,
            "nodeCompliant": true
        },
        {
            "id": "MODERNIZR",
            "name": "Modernizr",
            "panel": "bottom",
            "foldername": "modernizrReport",
            "enabled": true
        },
        {
            "id": "EXPRESS",
            "name": "Express",
            "panel": "bottom",
            "foldername": "express",
            "enabled": false,
            "nodeCompliant": true,
            "nodeOnly": true
        }
    ]
}
meulta commented 8 years ago

hm... where are you hosting your vorlon.js instance? :)

ghost commented 8 years ago

I'm hosting my vorlon.js on my windows machine but it's executed on Mac within Outlook.

meulta commented 8 years ago

Can you try to host it directly from your mac ?

meulta commented 7 years ago

Up ? :)