Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialGinger Williams
6,409 PointsRemote debugging has been terminated with reason: websocket_closed
when I runt the debugger I get this error after the browser opens. Detached from target Remote debugging has been terminated with reason: websocket_closed
in the terminal it also errors out /usr/local/lib/node_modules/node-inspector/lib/InjectorClient.js:111 cb(error, NM[0].ref); ^
TypeError: Cannot read property 'ref' of undefined
5 Answers
Ginger Williams
6,409 Pointslatest version of node integrates inspect via $ node --inspect src/app.js
https://nodejs.org/docs/latest/api/debugger.html#debugger_v8_inspector_integration_for_node_js
running $ nodemon --inspect src/app.js
allows you to duplicate the next lesson in a single iterm window.
When you make a change in your js file, you must Reconnect DevTools in the inspector.
Seth Kroger
56,413 PointsGoogling the second error message brought this up: https://github.com/node-inspector/node-inspector/issues/905
Looks like an issue with recent versions of node (6.4+) and you may need to downgrade to 6.3.1 for node-inspector to work for now.
Bachir SELLAMI
3,209 PointsHello, I have the same problem : websocket_closed . I have tried to install the version 6.3.1 for node-inspector but thre no such version??? the versions number are like 0.12.8, 0.12.7 , ... Is there something I miss?
Bachir SELLAMI
3,209 PointsHello,
Ok, I have understand, the version number is the version of node not of node-inspector.
Bachir SELLAMI
3,209 Pointsthanks a lot