Search code examples
node.jsazureazure-web-app-serviceremote-debugging

Node.js remote debug on Azure


I followed this post Debugging Node.js Azure Web Apps and set my environment accordingly.

It seems like "mysite.azurewebsites.net/server.js/debug" connects to the server and load the scripts but the Websocket connections returns.

Overrides.js:17 WebSocket connection to 'ws://mysite/server.js/debug/ws' 
failed: Error during WebSocket handshake: Unexpected response code: 500
2016-02-12 15:14:20.147 Overrides.js:27 EventonWebSocketError @ Overrides.js:27

Solution

  • Currently you can the old method, which use iisnode-inspector.dll. set debuggerExtensionDll: iisnode-inspector.dll in iisnode.yml for debugging the node.js scripts by iisnode, as the workaround shown at issue#388.

    And additionally, you can leverage VSO extension on Azure Web Apps, which provides an online editor and cmdlet tool. You can refer to this thread on MSDN