Debugging IISNODE Applications: new node-inspector integrated with iisnode

This is available in iisnode v0.2.13.

Refer to http://tomasz.janczuk.org/2011/11/debug-nodejs-applications-on-windows.html for details on debugging iisnode applications.

New setting in web.config:

<iisnode …
debuggerExtensionDll=”iisnode-inspector-0.7.3.dll”
… />

iisnode-inspector-0.7.3.dll is the default value for debuggerExtensionDll setting and this dll contains node-inspector-0.7.3 files. iisnode extracts these files when it gets the first server.js/debug request and debuggingEnabled is set to true for the iisnode application.

If you want to switch to the old node-inspector, you can set the debuggerExtensionDll to “iisnode-inspector.dll”.

Since, node-inspector v0.7.3 removed socket.io framework and uses WebSockets (WebSocket framework), to use the new node-inspector based iisnode debugging:
1. IIS
– in your web.config, disable IIS websocket module (since iisnode does not use IIS websocket module)
http://tomasz.janczuk.org/2013/01/hosting-socketio-websocket-apps-in-iis.html — look for <webSocket enabled=”false” />
2. Azure Websites
– Enable websockets for your Azure Website – http://blogs.msdn.com/b/webdev/archive/2013/11/14/azure-web-site-now-supports-websockets.aspx
– in your web.config, disable IIS websocket module (since iisnode does not use IIS websocket module)
http://tomasz.janczuk.org/2013/01/hosting-socketio-websocket-apps-in-iis.html — look for <webSocket enabled=”false” />

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>