Vue Debug Artifact Vue-devtools installation

Source: Internet
Author: User
Tags chrome developer
This is a creation in Article, where the information may have evolved or changed.

Objective

Vue-devtools is a chrome-based browser plugin for debugging Vue applications, which can greatly improve our debugging efficiency. Next we will introduce the installation of Vue-devtools.

Chrome Store installs directly

Vue-devtools can be downloaded and installed directly from the chrome store, which is very simple and not too much to introduce here. But one thing to note is that you need to flip the wall to download it.

Manual Installation

The first step: Find Vue-devtools's GitHub project and clone it locally. Vue-devtools

git clone https://github.com/vuejs/vue-devtools.git

Step Two: Install the NPM package required for the project

npm install   //如果太慢的话,可以安装一个cnpm, 然后命令换成 cnpm install

Step three: Compile the project file

npm run build

Fourth step: Add to Chrome Explorer

游览器输入地址“chrome://extensions/”进入扩展程序页面,点击“加载已解压的扩展程序...”按钮,选择vue-devtools>shells下的chrome文件夹。/***如果看不见“加载已解压的扩展程序...”按钮,则需要勾选“开发者模式”。*/

To do this, add the following:

Epilogue: How to use Vue-devtools

After we've added the vue-devtools extension, when we debug the Vue app, we'll look at a vue column in the Chrome Developer tool and then click to see some information about the Vue object on the current page. Vue-devtools is still relatively simple to use, easy to get started with, here is a detailed description of its use.

Related Article

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.