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

on PC, I cant get inspector to do anything and dont know how to get terminal to use cmd *git:(interactive...)*

Currently trying to debug here :

$node --inspect --debug-brk src/app Debugger listening on port 9229. Warning: This is an experimental feature and could change at any time. To start debugging, open the following URL in Chrome: chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/a35aae48-78af-448e-b39c-dee0ead02e3a Debugger attached.

Question On a PC how do you get: $ git:(interactiveDebuggingAndExploratoryProgramming) node --debug src/app.js bash: syntax error near unexpected token `interactiveDebuggingAndExploratoryProgramming'

to be a valid commmand? I tried node-inspector too.

I have been spending hours on this and cant find an answer in the docs.

1 Answer

git:(interactiveDebuggingAndExploratoryProgramming) is not part of the command. its part of Huston's bash prompt. Its a special plugin or program he has added to his bash/terminal that always shows him what git branch he is on. instead of

git:(interactiveDebuggingAndExploratoryProgramming) node --debug src/app.js

you would just type

node --debug src/app.js

"node" is the command, and everything after it are arguments. The text that appears before is just part of his prompt that is automatically displayed. your prompt might be just a "$" or a directory path followed by a "$"

The extra bit he has on his prompt isn't necessary, you can check what git branch you're on by using the command:

git branch