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 trialKyle Rooker
5,243 PointsUnable to access variables in Chrome console on OS X
I'm following the tutorial exactly and am able to launch the debugger. There are a few differences though:
In the console, when I open it after I reach the "debugger;" command, I never see the The frontend server is running on port 3000.
-
My console has two warnings and one error:
- warning 1: /deep/ combinator is deprecated
- error 1: Assertion failed: unknown experiment canvasInspection (Runtime.js:358(
- warning 2: Synchronous XMLHttpRequest on the main thread is deprecated...
On the right in the scope variables box I can see the variables app, posts, etc. and am able to expand them to see their attributes, but if I type "app" into the console I don't get all that detail that is in the video. Instead I get a ReferenceError: app is not defined
Does anyone know what might be the problem? I've done some googling but no luck.
2 Answers
nguoisechiavnvncomvn
Courses Plus Student 2,363 PointsI have the same problem. when i input req to console, it say that Uncaught ReferenceError: req is not defined.
Vladislav Roscovan
17,565 PointsI had the same problem. Try to call "node-debug src/app.js" instead of "node-inspector src/app.js"
Kyle Rooker
5,243 PointsKyle Rooker
5,243 PointsI'll leave this here in case anyone has the same problem. The issue is we aren't opening the chrome console, but instead the node inspector console which is the icon in the top right next to the gear setting.