Detailed steps for debugging VUE projects in IDEA

Detailed steps for debugging VUE projects in IDEA

To debug js code, you need to write debugger in the code or set breakpoints in Chrome every time, and the breakpoint information of Chrome is not user-friendly. I accidentally discovered that idea has this function, it is really amazing. After studying for a long time, I finally got it done. Haha, I'm so happy. Here are the detailed steps:

1. Download the browser plug-in

Search for the "jetbrains ide support" plug-in in the Chrome app store. You may need FQ (if you don't know how to use Baidu, just use google host), as shown below. This is what I have installed. Here I tried to find the downloaded plug-in and installed it, but the connection was not successful and an error message was always prompted, which will be mentioned below. So don't be lazy and download it honestly.

insert image description here

After successful installation, this icon will appear in the upper right corner

insert image description here

It should be noted that you should not install downloaded plug-ins. First, they will not work after installation. Second, Chrome does not trust plug-ins from unknown sources and will automatically disable the plug-ins after restarting. If you cannot install it online, there is another way: change the extension of the downloaded plug-in to rar, unzip it to a folder, use the browser's plug-in developer mode, load the folder as a plug-in, and install it.

You can also right-click on the plug-in icon and select Options, as shown below, to configure the port, which must be consistent with that in idea;

insert image description here
insert image description here

2. Configure IDEA

The configuration in idea is as follows

insert image description here
insert image description here

After these two steps are configured, run the newly created JavaScript Debug to start debugging and access the breakpoints.

insert image description here

This is the end of this article about how to debug VUE front-end projects in IDEA. For more information about debugging VUE projects in IDEA, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to debug Vue program
  • How to install Vue-devtools
  • Implementation method of Vue3.x source code debugging
  • How to run a Vue project with Idea or webstorm (detailed steps)
  • Debugging VUE front-end projects in IDEA and debugging JS only requires two steps

<<:  How does MySQL achieve master-slave synchronization?

>>:  Some parameter descriptions of text input boxes in web design

Recommend

Docker Compose installation and usage steps

Table of contents 1. What is Docker Compose? 2. D...

HTML+CSS to create a top navigation bar menu

Navigation bar creation: Technical requirements: ...

Understanding MySQL clustered indexes and how clustered indexes grow

In this note, we briefly describe What is the B+T...

How to remotely connect to the cloud server database using Navicat

It is very convenient to connect to a remote serv...

The role of nextTick in Vue and several simple usage scenarios

Purpose Understand the role of nextTick and sever...

How to use the yum command

1. Introduction to yum Yum (full name Yellow dogU...

Learn the basics of JavaScript DOM operations in one article

DOM Concepts DOM: document object model: The docu...

Use of Docker UI, a Docker visualization management tool

1. Introduction to DockerUI DockerUI is based on ...

How to quickly clean up billions of data in MySQL database

Today I received a disk alarm exception. The 50G ...

Vue form input binding v-model

Table of contents 1.v-model 2. Binding properties...

The Complete List of MIME Types

What is MIME TYPE? 1. First, we need to understan...

Join operation in Mysql

Types of joins 1. Inner join: The fields in the t...

How to use time as a judgment condition in MySQL

Background: During the development process, we of...

Centos7 mysql database installation and configuration tutorial

1. System environment The system version after yu...