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

Console says 'app is not defined' and I can't follow along with debugging.

After finally getting the debugger to open on windows (it helps if you have a debugger; statement in app.js), my console says :

Uncaught ReferenceError: app is not defined at <anonymous>:1:1 no matter where I put the breakpoint in app.js

How do I fix this to follow along with debugging?

1 Answer

Steven Parker
Steven Parker
229,921 Points

Actual errors are always displayed in the debugger.

You don't need a breakpoint for them.

If you'd like help diagnosing your issue, post your code here. Or better yet, make a snapshot of your workspace and post that.