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.
Characteristics:
- Viewing the console Log
- View Network Requests
- Manually execute the JS command line
- Custom Plugins
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:
<script src= "Path/to/vconsole.min.js" ></script><script>console.log (' Hello world ');//Then click on the lower right corner Vconsole button to view log</script>
Demo Code:
<! DOCTYPE html>Mobile phone front-end development and debugging tool –vconsole