What is vconsole?
vConsole is a lightweight, extendable front-end developer tool for mobile web pages. It provides a console panel to help developers debug their web applications on mobile devices.
What are vconsole's main functionalities?
Console Logging
vConsole allows you to log messages to a console panel on your mobile web page, making it easier to debug issues directly on mobile devices.
const vConsole = new VConsole();
console.log('Hello, vConsole!');
Network Requests
vConsole can capture and display network requests, helping you to monitor and debug network activity in your mobile web application.
const vConsole = new VConsole();
vConsole.pluginList.network.on('send', function(request) {
console.log('Request sent:', request);
});
Custom Plugins
vConsole supports custom plugins, allowing you to extend its functionality to suit your specific debugging needs.
class MyPlugin extends VConsole.VConsolePlugin {
constructor() {
super('my_plugin', 'My Plugin');
}
onRenderTab(callback) {
callback('<div>My custom plugin content</div>');
}
}
const vConsole = new VConsole();
vConsole.addPlugin(new MyPlugin());
Other packages similar to vconsole
eruda
Eruda is another console for mobile browsers. It provides similar functionalities to vConsole, such as logging, network request monitoring, and custom plugins. Eruda is known for its rich set of built-in plugins and ease of use.
weinre
Weinre (Web Inspector Remote) is a web inspector tool that allows you to debug web pages remotely. It provides a more comprehensive set of debugging tools compared to vConsole, including DOM inspection and JavaScript debugging, but it requires a server to run.
jsconsole
JSConsole is a web-based console that allows you to log messages and execute JavaScript code remotely. It is simpler than vConsole and focuses mainly on logging and code execution, without the additional features like network monitoring.
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)
$ npm install vconsole
import VConsole from 'vconsole';
const vConsole = new VConsole();
const vConsole = new VConsole({ theme: 'dark' });
console.log('Hello world');
vConsole.destroy();
Method 2: Using CDN in HTML:
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>
var vConsole = new window.VConsole();
</script>
Available CDN:
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
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