Tencent /vConsole
A lightweight, extendable front-end developer tool for mobile web page.
★ 17,540⑂ 2,959👁 301⑃ 224● 507▤ 57
+0
Daily
17,540
stars
2,959
forks
301
watchers
224
prs
507
issues
57
releases
README
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:
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:
Method 1: Using npm (Recommended)
bash
$ npm install vconsole
javascript
import VConsole from 'vconsole';
const vConsole = new VConsole();
// or init with options
const vConsole = new VConsole({ theme: 'dark' });
// call console methods as usual
console.log('Hello world');
// remove it when you finish debugging
vConsole.destroy();
Method 2: Using CDN in HTML:
html
// VConsole will be exported to window.VConsole by default.
var vConsole = new window.VConsole();
Available CDN:
- https://unpkg.com/vconsole@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:
- Tutorial
- Public Properties & Methods
- Builtin Plugin: Properties & Methods
Custom Plugin:
- Plugin: Getting Started
- Plugin: Building a Plugin
- Plugin: Event List
---
Third-party Plugins
- vConsole-sources
- vconsole-webpack-plugin
- vconsole-stats-plugin
- vconsole-vue-devtools-plugin
- vconsole-outputlog-plugin
- vite-plugin-vconsole
---
Feedback
QQ Group: 497430533
!
---
License
The MIT LicenseTop issues
#582ios移动端页面显示空白10 comments · 2022-11-14#602苹果手机无法复制console.log里打印的信息8 comments · 2023-02-06#484Type error in IOS devices7 comments · 2021-12-14#592在Storage里使用编辑功能修改key值,保存会自动把key和value变为空5 comments · 2022-12-18#569安卓 5.1 支持5 comments · 2022-10-10#735处理流式数据的错误报警4 comments · 2026-04-20#606`Symbol.toStringTag` support is missing4 comments · 2023-02-27#580UI Bug: Log 和 System 的 command 和 filter 的 input 框不正常4 comments · 2022-11-09
Latest release
v3.15.1 v3.15.1 2023-06-01EN: - Feat(Netwrk) Add new option network.ignoreUrlRegExp to skip some requests. (PR 623) - Fix(Core) Fix prototype pollution in vConsole.setOption(). (issue 616 621) - Fix(Core) Fix plugin event ready triggering before its HTML finishes rendering. (issue 591) - Fix(Log) Reset group state when console.clear() is called. (issue 611) - Fix(Log) Compatible with iOS (less than 13.4) that does not support ResizeObserver, but there may be a potential performance issue when printing a large number of logs. (issue 610) - Fix(Network) Fix possible "Cannot read property" error by sendBeacon. (is