Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

inspector 0.1.5 debug.request session.js:129 null ptr reference #25

Closed
nafeger opened this Issue · 6 comments

2 participants

@nafeger

When I try to connect node's debugger up to node-inspector I get this stack trace:

/home/nfeger/.node_libraries/.npm/node-inspector/0.1.5/package/lib/session.js:129
debug.request(
^
TypeError: Cannot call method 'request' of null
at evaluate (/home/nfeger/.node_libraries/.npm/node-inspector/0.1.5/package/lib/session.js:129:11)
at EventEmitter. (/home/nfeger/.node_libraries/.npm/node-inspector/0.1.5/package/lib/session.js:460:26)
at EventEmitter. (/home/nfeger/.node_libraries/.npm/node-inspector/0.1.5/package/lib/session.js:935:19)
at Connection. (/home/nfeger/.node_libraries/.npm/node-inspector/0.1.5/package/lib/debug-server.js:36:15)
at Connection.emit (events.js:27:15)
at [object Object].write (/home/nfeger/.node_libraries/.npm/node-inspector/0.1.5/package/vendor/ws/connection.js:434:21)
at Stream. (/home/nfeger/.node_libraries/.npm/node-inspector/0.1.5/package/vendor/ws/connection.js:79:16)
at Stream.emit (events.js:27:15)
at Stream._onReadable (net.js:757:14)
at IOWatcher.onReadable as callback

node version: 0.3.1-pre

@ghost

I'm having the identical problem with the identical error message. Please help, I can't live without this. Life is over as I know it.

@dannycoates
Owner

Ok, I've found the cause. If you have been using the watch expressions they are saved to the browser's local storage. Upon returning to the page, it will try to evaluate those watches before connecting to the debugger, and crash.

I'll get this fixed ASAP, but in the meantime to get back to a usable state, open node-inspector in the browser (it will crash the server process) and open the developer tools window of the browser. Go to the Resources panel, find localhost in the Local Storage and delete the watchExpressions key. You should then be able to restart the node-inspector process and not crash.

I hadn't noticed this since i almost never use watches. Sorry for the inconvenience, and thanks for reporting the issue :)

@ghost

Thanks for the quick response. I can resume my life now. You should have a donation.

@dannycoates
Owner

version 0.1.6 - closed by d0deaac

@nafeger

Thanks for the quick turn around.

@nafeger

Works great now, Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.