Reputation: 6856
I am a front-end developer.I'm learning node.js now.it's unusual for me to see console in Terminal.Is it possible to configure so that the console is visible in Chrome ?.
Upvotes: 2
Views: 1135
Reputation: 6928
Yes, you can use node inspector
module or if your Node Version is v6.3.0+ you already have this functionallity:
Using --inspect
command from Node v6.30.0+ :
node --inspect YOUR_FILE_NAME.js
about:inspect
in Chrome.Using Node Inspector module:
$ npm install -g node-inspector
node-debug YOUR_FILE_NAME.js
Fonts: Debugging Node.js with Chrome DevTools
Node Inspector documentation
Upvotes: 3