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 trial

JavaScript Express Basics (2015) Developing Express Apps Like a Boss Interactive Debugging and Exploratory Programming

I 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?

I have the same exact issue. Can someone clarify?

I 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

This should hopefully solve your issue, it seems to be working for me:

https://maltronic.io/2016/12/01/node-inspector-console-not-working-in-latest-version-of-google-chrome/

This is a great fix! Thank you!

Did you solve it? I am having the same problem and it's extremely frustrating.

Sorry! 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.

Interesting! Will try to find a solution aswell. I have access to the scope variables on the right side of the debugger though. Do you?

Actually, 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.

Thanks! I'll try!

I 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 :)