nodejs debugging with node-inspector on windows


I recently started learning nodejs- the recommended debugging tool seems to be node-inspector. You can grab and install this using npm (the command line node package manager- like nuget for node), making it available to all your projects;

npm install -g node-inspector

Once npm has worked it’as magic, you start node inspector by simply typing node-inspector into the command line- then start your project in node, with the debug flag;

node --debug myfile.js

If all runs as planned, you can then hit the browser on http://localhost:8080/debug?port=5858, as mentioned in the docs.

However when I started node-inspector I received an error;
C:\Users\Shawson>node-inspector
info - socket.io started
warn - error raised: Error: listen EACCES

After some fiddling, I found that changing the default port from 8080 to something else (I chose 124 at random) fixed this issue- I just then had to use the url http://localhost:124/debug?port=5858. This is because I foolishly forgot I have an instance of IIS on my local box which uses this port- a handy find though as I couldn’t find any help online fixing this issue.

  1. #1 by Francisco Santiago on June 6, 2012 - 17:15

    Hell yeah Shawson!
    Finally a simple and working example :D

  2. #2 by Marek Karwowski (@iEvaluation) on October 20, 2012 - 20:36

    There is always something wrong with the ports :p Just described similar issue I had to deal with trying to run web-script with Angular.js. Check my blog for details.

(will not be published)


I absolutely love these. They came at the lace wigs are good quality, and very soft. Absolutely love these extensions. I just love this hair. Hair came on time, I waited until after hair extensions uk very full, no shedding and it is been installed for 3 weeks now and yes I jus ordered 3 more bundles. Lol. I definitely recommend this company for your bundles ladies. They are soft, hair bundles on the head for human hair wigs and I would continue to recommend them. I have thinner hair so they cover and blend nicely.