Mobile phone front-end development and debugging tool –vconsole

Source: Internet
Author: User

When we develop a mobile Web page, we often get the following scenario:

(1) Development, in their own computer running well, on the phone to open on the hanging, but the phone can not see the error log;

(2) After the launch, a user indicates that the page is out of line, but we do not reappear, see the user side of the error message.

if (1) can also be connected to the mobile phone through the computer to view the log to solve, that (2) in the absence of a perfect front-end escalation system is very passive.

As a developer, our appeal is simple: is there a quick way to see the log logs on the front page of the phone?

The answer is yes.

Vconsole: A lightweight, scalable, front-end developer debug panel for mobile Web pages.

How to use

Download the latest version of Vconsole. (Do not download dist/vconsole.min.js directly under the dev branch)
Or use NPM to install:

NPM Install Vconsole

Introduced dist/vconsole.min.js into the project:

12345 <script src="path/to/vconsole.min.js"></script><script>console.log(‘Hello world‘);// 然后点击右下角 vConsole 按钮即可查看到 log</script>

If you are installing via NPM, a project that uses Webpack can be referenced by this in main.js:

Let Vconsole = require (' Vconsole '); new Vconsole (); You can then view the print on the mobile side via the console

Mobile phone front-end development and debugging tool –vconsole

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.