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

Felipe Chavarri
Felipe Chavarri
6,124 Points

Can't debug remotely :(

I've installed a ubuntu 14.04 server over a virtualbox enviroment to follow along the classes, but I got stuck with the node-inspector web debugging. I tried to modify the local address (127.0.0.1) to my remote server (10.0.0.10) but its useless. On github I found that I need to verify if port 8080 is accessible and It is.

I'll apreciate very much if someone could help me on this issue

Thanks! BR

4 Answers

Felipe Chavarri
Felipe Chavarri
6,124 Points

For best results use this command:

node-debug --web-host=10.0.0.10 --debug-port=5656 --web-port=10100

replace '10.0.0.10' with your server ip address ;) and the ports aren't exclusive too

Felipe Chavarri
Felipe Chavarri
6,124 Points

I found it! For any question check this link: https://www.theodo.fr/blog/2015/11/debugging-your-node-js-server-code-in-the-browser/

I used this command to solve my issue:

node-inspector --web-host=10.0.0.10 --debug-port=5656 --web-port=10100 --no-preload

Felipe Chavarri
Felipe Chavarri
6,124 Points

I found it! For any question check this link: https://www.theodo.fr/blog/2015/11/debugging-your-node-js-server-code-in-the-browser/

I used this command to solve my issue:

node-inspector --web-host=10.0.0.10 --debug-port=5656 --web-port=10100 --no-preload

Juan Ferr
Juan Ferr
13,220 Points

just put this

node-debug --web-host localhost --no-preload src/app.js

cause it changed in the last few months, on ubuntu at least