Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node command line verbose output

So I'm running

sudo node app.js

var express = require("express");
var app = express();


app.get("/",function(req,res){
        res.send("<h1>Oi mate</h1>");
});

app.listen(80);

And the process freezes

How do I see the output like other command line tools would have --verbose

like image 522
Eric Johnson Avatar asked Mar 29 '16 05:03

Eric Johnson


People also ask

Which command is used for verbose output?

There are several ways to enable Verbose Mode. During startup, the screen may display which key(s) to press on the keyboard to enable Verbose Mode. Usually, users would press the Esc (escape) key for Linux, or the keyboard shortcut Ctrl + V for Microsoft Windows, and Command + V for macOS.

What is verbose in command line?

The verbose option specifies that you want to display detailed processing information on your screen. This is the default. When you run the incremental, selective, or archive commands, information is displayed about each file that is backed up.

How do you show verbose?

By default, the verbose message stream is not displayed, but you can display it by changing the value of the $VerbosePreference variable or using the Verbose common parameter in any command.


1 Answers

You can enable verbose logging in all core modules with the following commandline form:

NODE_DEBUG=cluster,net,http,fs,tls,module,timers node app.js
like image 70
Rondo Avatar answered Sep 21 '22 21:09

Rondo