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 trialOana Giurgea
Courses Plus Student 14,283 PointsI cannot play variables in console!
I cannot play variables in console Node-inspector. So, I have not access to the objects. When I type a variable and hit ENTER nothing happens. How can I fix this?
Jonathan Foster
9,134 PointsI can hit enter a million times, prompt just keeps scrolling and letting me type, almost like i'm in a word processor. No response from console.
5 Answers
Ross King
22,165 PointsThis should hopefully solve your issue, it seems to be working for me:
Andrew Wong
Full Stack JavaScript Techdegree Student 15,373 PointsThis is a great fix! Thank you!
Sebastian Andersson
Full Stack JavaScript Techdegree Student 13,003 PointsDid you solve it? I am having the same problem and it's extremely frustrating.
Oana Giurgea
Courses Plus Student 14,283 PointsSorry! I didn't solve it! It appears that we are working with the last version of Node.js but Node-inspector is not updated for that. I'm still finding a solution.
Sebastian Andersson
Full Stack JavaScript Techdegree Student 13,003 PointsInteresting! Will try to find a solution aswell. I have access to the scope variables on the right side of the debugger though. Do you?
henrihouthoff
33,595 PointsActually, Node Inspector has not been maintained for a while (last commit was April, 9 2016) and does not work properly on newer versions of Nodejs and Chrome. The inspect functionality has been included with newer versions of Nodejs (https://nodejs.org/dist/latest-v6.x/docs/api/debugger.html#debugger_v8_inspector_integration_for_node_js).
To make node-inspector work, as in this course, you should downgrade both Chrome and Nodejs to older versions. Or you should use the node debugger.
Oana Giurgea
Courses Plus Student 14,283 PointsThanks! I'll try!
Rifqi Fahmi
23,164 PointsI also got the same issue instead of using command "node --debug src/app" I use "node --inspect src/app". with node --inspect i can play with the variable in the console. Hope this help :)
Jonathan Foster
9,134 PointsJonathan Foster
9,134 PointsI have the same exact issue. Can someone clarify?