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 Set up Debugging with VS Code

I cant launch program to start debugging

Whenever I go to launch program and start debugging I get an alert saying "Cannot launch program 'C:\Users\bri15_000\Downloads\debug-node-apps-with-vs-code\';

I still cannot connect to localhost3000 ...

Did you unzip the folder first? The downloaded file we get from Treehouse is a .zip. Unzip that folder before trying to run it with VSC. If you have, are you opening the - folder - through Open > Folder in Visual Studio Code? You have to select "Open Folder", not "Open File"

1 Answer

John Nguyen
.a{fill-rule:evenodd;}techdegree seal-36
John Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 Points

I'm not sure if you're still having this issue but I resolved this issue by doing the following.

Editing line 28 on bin/www to

server.listen(port, '');

I hope this helps you or someone else!

Thanks John! I had the same problem but now it works :)