feng520ckx / vConsole

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English | 简体中文

vConsole

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

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

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 (Recommanded)

$ npm install vconsole
import VConsole from 'vconsole';

const vConsole = new VConsole();
// or init with options
const vConsole = new VConsole({ maxLogNumber: 1000 });

// 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>

Preview

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

Documentation

vConsole:

Plugin:

Third-party Plugins

Feedback

QQ Group: 497430533

License

The MIT License

About

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

License:Other


Languages

Language:TypeScript 43.9%Language:Svelte 24.5%Language:HTML 18.4%Language:Less 8.2%Language:JavaScript 4.7%Language:CSS 0.3%