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!

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) The Request and Response Objects in Express Requests and the request object

Marius Unknown
Marius Unknown
12,925 Points

Console is not working.

Sorry. Totally messed up in these 'debugging' methods...

First I'm using

$ nodemon --inspect src/app.js

as mentioned in previous forums.

Everything works OK, I can watch req, res method on the right of my chromeDevTools by clicking them from the list, but console still doesn't work.

Any help/clarity with these debuggers and also their version changing stuff?

I can't get anything to run in the console. Extremely frustrating. 'Use Strict' causes an error, and If I take out 'use strict' it then says "app is not defined" (its a variable with var keyword). Anything I'm missing? Ive run far more complex express servers but never was taught this debug method. 1) Is this worth the time and frustration( can I skip over debugging for this course)? 2) How do I get the console to display the info I need for debuggin?

2 Answers

PoJung Chen
PoJung Chen
5,856 Points

I face the same issue. I can put any information in the chrome console.

Same here.