node-inspector: TypeError: Cannot read property 'ref' of undefined

Node v6.9.1 Windows 10 x64

app.js:

var i = 0;

setInterval(function () {
  console.log(i++);
}, 1000);

cmd:

C:\localhost\taxi>node-debug app.js

Node Inspector v0.12.8
Visit http://127.0.0.1:8080/?port=5858 to start debugging.
Debugging `app.js`

Debugger listening on [::]:5858
C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\InjectorClient.js:111
      cb(error, NM[0].ref);
                     ^

TypeError: Cannot read property 'ref' of undefined
    at InjectorClient.<anonymous> (C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\InjectorClient.js:111:
22)
    at C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\DebuggerClient.js:121:7
    at Object.value (C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\callback.js:23:20)
    at Debugger._processResponse (C:\Users\my\AppData\Roaming\npm\node_modules\node-inspector\lib\debugger.js:95:21)
    at Protocol.execute (_debugger.js:121:14)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:548:20)
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:1026:11)
    at TCP.onread (net.js:569:26)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 27
  • Comments: 21

Most upvoted comments

Any update?

Me too with 6.9.1 on Linux.

Windows 10 x64 Node v6.10.0 The same error!

I get the same error message, even when I install locally and run with node_modules/node-inspector/bin/node-debug.js app.js.

6.9.1 in mac - same issue

Also getting this with 6.9.1 on Linux.