Hello,
I am trying to debug a very simple app in node.js and I am having problems.
Here are my stages:
1. In node.js console:
npm install -g node-inspector
2. In app.js:
var foo = function(){
var a = 3, b = 5;
debugger;
var bar = function() {
var b = 7, c = 11;
a += b + c;
debugger;
}
bar ();
debugger;
};
foo();
3. In node.js console:
node --debug-brk app.js
Response: debugger listening on port 5858
4. In another node.js console:
node-inspector
Response:
This webpage is not available
Error 108 (net::ERR_ADDRESS_INVALID): Unknown error.
Any ideas where I am going wrong here?
Thanks, Dave J.