博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
probe.war使用_使用console-probe更好的Node.js控制台转储
阅读量:2513 次
发布时间:2019-05-11

本文共 1341 字,大约阅读时间需要 4 分钟。

probe.war使用

Writing JavaScript in the Node.js environment has always felt a bit more difficult; probably because browser developer tools have become incredibly powerful, interactive, and visually appealing.  Using console.log on the client side isn't the best of experiences and obviously isn't interactive.

在Node.js环境中编写JavaScript总是感到有些困难。 可能是因为浏览器开发人员工具已经变得功能强大,具有交互性并且在视觉上具有吸引力。 在客户端使用console.log并不是最好的体验,并且显然不是交互式的。

Though not interactive, I've found that is an improvement over console.log, providing me highlighted property types, lengths, and a nice visual tree view.

尽管不是交互式的,但我发现是对console.log的改进,为我提供了突出显示的属性类型,长度和漂亮的可视化树状视图。

const probe = require('console-probe')const donut = {  'id': '0001',  'type': 'donut',  'name': 'Cake',  'description': 'A small fried cake of sweetened dough, typically in the shape of a ball or ring.',  'ppu': 0.55,  'common': true,  'batters':  {    'batter':    [      { 'id': '1001', 'type': 'Regular' },      { 'id': '1002', 'type': 'Chocolate' },      { 'id': '1003', 'type': 'Blueberry' },      { 'id': '1004', 'type': "Devil's Food" }    ]  },  // .....// Highlight nicely to consoleconst prober = probe.get()prober(donut)

console-probe is one of those nice, luxury utilities that can make debugging in a static environment just a bit better!

console-probe是那些不错的工具,可以在静态环境中进行调试好一些!

翻译自:

probe.war使用

转载地址:http://nfvwd.baihongyu.com/

你可能感兴趣的文章
RAID
查看>>
Jquery.Sorttable 桌面拖拽自定义
查看>>
PSP
查看>>
身份证的最准确的正则表达式,绝对让你吃惊啊!
查看>>
14.python读写Excel
查看>>
MySQL备份类别
查看>>
JNI数据类型(转)
查看>>
mysql 主从数据同步
查看>>
ContentType的一些值
查看>>
哈希表
查看>>
Codeforces 1174C Ehab and a Special Coloring Problem
查看>>
java并发编程基础 --- 4.1线程简介
查看>>
LeetCode "Word Search"
查看>>
LintCode "Maximum Subarray Difference"
查看>>
压力测试 webbench
查看>>
创建一个简单的WCF程序
查看>>
为什么需要配置环境变量
查看>>
$i++,++$i
查看>>
Knockout学习笔记之一
查看>>
Linux学习路径
查看>>