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

Kyle Rooker
Kyle Rooker
5,243 Points

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

  1. 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.

  2. 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...
  3. 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.

Kyle Rooker
Kyle Rooker
5,243 Points

I'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.

2 Answers

I have the same problem. when i input req to console, it say that Uncaught ReferenceError: req is not defined.

Vladislav Roscovan
Vladislav Roscovan
17,565 Points

I had the same problem. Try to call "node-debug src/app.js" instead of "node-inspector src/app.js"