简体   繁体   English

在NodeJS Express中检查控制台日志

[英]Inspect Console Log in NodeJS Express

I am currently debugging a Nodejs Express application and I was wondering if there was a way to inspect the console log object similar to how you would do when developing web applications in Chrome or Firefox. 我目前正在调试Nodejs Express应用程序,我想知道是否有一种检查控制台日志对象的方法,类似于在Chrome或Firefox中开发Web应用程序时的方法。
IE: IE浏览器:

  var myObj = [{"hello": "world"}];
  console.log(myObj);

Inspect Object: 检查对象:

在此处输入图片说明

Below is an example of a console.log() I am trying to inspect from Express: 以下是我试图从Express中检查的console.log()的示例:

在此处输入图片说明

Check out node-inspector to debug your Node.js script in a browser. 签出node-inspector,以在浏览器中调试Node.js脚本。

Here's a link to a video showing how to use the module. 这是显示如何使用该模块的视频的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM