GitXplorerGitXplorer
T

vConsole

public
16753 stars
2945 forks
85 issues

Commits

List of commits on branch dev.
Unverified
6f8ef9b9a997513f4f0e4ad0766dea005c53e0b7

Fix(Network): Fix possible "Cannot read property" error by `sendBeacon`. (issue #615, #629)

MMaizify committed a year ago
Verified
968f3e29efe98d9f3986e355f7165771b6e4db99

Merge pull request #628 from Tencent/dev

MMaizify committed a year ago
Unverified
84b4c2200b6b4658fef258ac9937d91b7aa62824

chore: v3.15.1

MMaizify committed a year ago
Unverified
a5270c6d5a1ade08877dc1c5875bf52070aa7f5f

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)

MMaizify committed a year ago
Unverified
547e0a3d32ad1c5d0f0c606b69c86e89f1e94fc1

chore: fix property

MMaizify committed a year ago
Unverified
289dd761c12a32685d5719d62ae90663fac97163

chore: fix typings

MMaizify committed a year ago

README

The README file for this repository.

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:

Method 1: Using npm (Recommended)

$ npm install vconsole
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:

<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>
  // VConsole will be exported to `window.VConsole` by default.
  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