项目作者: Tencent

项目描述 :
A lightweight, extendable front-end developer tool for mobile web page.
高级语言: JavaScript
项目地址: git://github.com/Tencent/vConsole.git
创建时间: 2016-04-27T03:33:45Z
项目社区:https://github.com/Tencent/vConsole

开源协议:Other

下载


English | 简体中文

vConsole

A lightweight, extendable front-end developer tool for mobile web page.

vConsole is framework-free, you can use it in Vue or React or any other framework application.

Now vConsole is the official debugging tool for WeChat Miniprograms.


Features

  • Logs: console.log|info|error|...
  • Network: XMLHttpRequest, Fetch, sendBeacon
  • Element: HTML elements tree
  • Storage: Cookies, LocalStorage, SessionStorage
  • Execute JS command manually
  • Custom plugins

For details, please see the screenshots below.


Release Notes

Latest version: npm version

Detailed release notes for each version are available on Changelog.


Guide

See Tutorial for more usage details.

For installation, there are 2 primary ways of adding vConsole to a project:

  1. $ npm install vconsole
  1. import VConsole from 'vconsole';
  2. const vConsole = new VConsole();
  3. // or init with options
  4. const vConsole = new VConsole({ theme: 'dark' });
  5. // call `console` methods as usual
  6. console.log('Hello world');
  7. // remove it when you finish debugging
  8. vConsole.destroy();

Method 2: Using CDN in HTML:

  1. <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
  2. <script>
  3. // VConsole will be exported to `window.VConsole` by default.
  4. var vConsole = new window.VConsole();
  5. </script>

Available CDN:

  • @latest/dist/vconsole.min.js"">https://unpkg.com/vconsole@latest/dist/vconsole.min.js
  • @latest/dist/vconsole.min.js"">https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js

Preview

http://wechatfe.github.io/vconsole/demo.html


Screenshots

Overview


Light theme



Dark theme


Log Panel


Log styling



Command line


System Panel


Performance info



Output logs to different panel

javascript console.log('output to Log panel.') console.log('[system]', 'output to System panel.')

Network Panel


Request details


Element Panel


Realtime HTML elements structure


Storage Panel


Add, edit, delete or copy Cookies / LocalStorage / SessionStorage



Documentation

vConsole:

Custom Plugin:


Third-party Plugins


Feedback

QQ Group: 497430533


License

The MIT License