変数が特定のコンテンツを提供する瞬間をどこでどのように見ることができますか? 、ここに私のコードは、この最初の行は、[OK]を動作します:ノードエクスプレスミドルウェア(デバッグ)上の変数の内容を確認するにはどうすればいいですか
authenticated : function(req, res){
if (req.user) {
res.redirect('/user');
//res.send(req.user.username);
console.log('user enter');
}
else {
res.render('account/login.jade', { title: "Usuario o contraseña incorrecta, si no recuerda su clave puede restablecerla más abajo." });
console.log('not login');
res.end;
}
},
、その質問は私の他の質問異なるDebugging nodejs with atom IDE
あなたは何を頼んでいるのか分かりません。 – jfriend00
@ jfriend00 Me xD – Nonemoticoner
あなたが[nodemon](https://www.npmjs.com/package/nodemon)でnode.jsアプリケーションを実行しているなら、 'console.log()'の出力を見ることができます。それ以外の方法がわからない –