How to debug express.js plus jade

  node.js, question

Recently I came into contact with a new project, jade engine and express.js framework. Now there is an error after modifying jade, but the front end only has the error page but does not output the error message. I checked jade’s api and found that it can be configured when rendering, but there is no place to configure debug in express. It is useless for me to change node_env to development. Please advise.

Reference:http://expressjs.com/en/guide/debugging ….

DEBUG=express:* node index.js

To start debugging Jade:https://github.com/pugjs/pug/issues/222

res.render('view', { debug : true })

Or ..

app.set('view options', { debug: true })