Add Vue Devtools and Use Them to Help in Development

Share this video with your friends

Social Share Links

Send Tweet
Published 4 years ago
Updated 2 years ago

We'll add the Vue Devtools to our browser to help us keep track of changes. At the time of recording, we need to install the beta version of the devtools to be compatible with Vue 3.

There are lots of ways data might get updated in an application as you continue development. The Vue Devtools will make it easier to track those changes as you build new functionality

Instructor: [0:00] To be able to help with debugging, I'm going to install the Vue DevTools. I'm going to go to Chrome extensions, to Chrome Web Store, and I'm going to search for Vue.

[0:08] There are two versions available. Vue beta and Vue. We need to use the Vue beta version when we're working with Vue 3. We go to the page and we add it to Chrome or Brave as mine is.

[0:20] If we go to manage the extensions, I've right clicked on Manage that extension and scrolled down, I need to be able to access file URLs. They're my local system. I need to be accessed those, and now let's see what happens when I visit this page. It says Vue has been detected.

[0:39] I have this extra panel in my DevTools that's called Vue, and it's listing some of my components, my root component, here. So is my data prop, my title data prop. I can edit it in here. I can say event, and it'll update it immediately here.

[0:56] The reason we might do this is we can follow the reactive key, and there are lots of ways that this data might get updated.

[1:01] As we go through this course, we'll refer back to the DevTools to check the changes we're making and to make sure everything's working as we expect.

egghead
egghead
~ 24 seconds ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today