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

Oana Giurgea
PLUS
Oana Giurgea
Courses Plus Student 14,283 Points

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

Oana Giurgea
Oana Giurgea
Courses Plus Student 14,283 Points

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.

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.

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

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