Top Related Projects
An extension that allows inspection of React component hierarchy in the Chrome and Firefox Developer Tools.
DevTools for Redux with hot reloading, action replay, and customizable UI
A browser extension to inspect Svelte application by extending your browser devtools capabilities
Quick Overview
Vue.js DevTools v6 is a browser extension for debugging Vue.js applications. It provides a powerful set of tools for inspecting component hierarchies, state management, performance profiling, and more. This version is a complete rewrite of the previous DevTools, offering improved performance and new features.
Pros
- Enhanced performance and stability compared to previous versions
- Improved user interface and design for better developer experience
- Support for Vue 3 applications while maintaining compatibility with Vue 2
- Advanced features like component editing, vuex time-travel debugging, and performance profiling
Cons
- May have a learning curve for developers used to the previous version
- Some features might be overwhelming for beginners
- Occasional bugs or compatibility issues with certain Vue.js configurations
- Limited support for some third-party Vue.js libraries
Getting Started
- Install the Vue.js DevTools extension for your browser (Chrome, Firefox, or Edge).
- Open your Vue.js application in the browser.
- Open the browser's developer tools (usually F12 or Ctrl+Shift+I).
- Look for the "Vue" tab in the developer tools panel.
- Start exploring your Vue.js application's components, state, and performance.
Note: For Vue 3 applications, make sure you're using the latest version of the DevTools extension that supports Vue 3.
Competitor Comparisons
An extension that allows inspection of React component hierarchy in the Chrome and Firefox Developer Tools.
Pros of react-devtools
- More mature and feature-rich, with a longer development history
- Supports advanced features like component filtering and searching
- Integrates well with React Native for mobile app debugging
Cons of react-devtools
- Can be slower and more resource-intensive, especially for large applications
- Learning curve may be steeper due to more complex features
- Less frequent updates compared to devtools-v6
Code Comparison
react-devtools:
const rootElement = document.getElementById('root');
const root = createRoot(rootElement);
root.render(<App />);
devtools-v6:
const app = createApp(App);
app.mount('#app');
Additional Notes
Both tools offer essential features for debugging and inspecting their respective frameworks. devtools-v6 is more lightweight and focused on Vue-specific functionality, while react-devtools provides a broader range of features suitable for complex React applications. The choice between them largely depends on the framework being used and the specific needs of the development team.
DevTools for Redux with hot reloading, action replay, and customizable UI
Pros of Redux DevTools
- More extensive time-travel debugging capabilities
- Supports multiple Redux-based frameworks (React, Angular, etc.)
- Offers a standalone app for debugging Redux applications
Cons of Redux DevTools
- Steeper learning curve for beginners
- Requires more setup and configuration
- Limited to Redux-based applications only
Code Comparison
Redux DevTools:
const store = createStore(
rootReducer,
compose(applyMiddleware(...middleware),
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__())
);
Vue DevTools:
import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)
app.mount('#app')
// Vue DevTools automatically detects Vue applications
The Redux DevTools require explicit setup in the store creation process, while Vue DevTools automatically detect Vue applications without additional configuration.
Both tools offer powerful debugging capabilities for their respective frameworks. Redux DevTools provides more advanced features for time-travel debugging and state management inspection, but it's limited to Redux-based applications. Vue DevTools, on the other hand, offers a more user-friendly experience with automatic detection and easier setup, making it more accessible for beginners working with Vue.js applications.
A browser extension to inspect Svelte application by extending your browser devtools capabilities
Pros of svelte-devtools
- Lightweight and focused specifically on Svelte components
- Provides a clean, intuitive interface for inspecting Svelte component hierarchies
- Offers real-time updates of component state and props
Cons of svelte-devtools
- Less feature-rich compared to devtools-v6, with fewer advanced debugging tools
- Limited cross-browser support, primarily focused on Chrome
- Smaller community and fewer regular updates
Code Comparison
svelte-devtools:
export function getNode(node) {
return {
id: node.id,
type: node.type,
tagName: node.tagName,
$$: node.$$
};
}
devtools-v6:
export function getComponentInstanceFromElement(element) {
const instance = element.__vue__;
if (instance) {
return instance;
} else {
const parent = element.parentElement;
if (parent) {
return getComponentInstanceFromElement(parent);
}
}
}
Both tools aim to provide developers with insights into their respective framework's component structure. While svelte-devtools focuses on simplicity and Svelte-specific features, devtools-v6 offers a more comprehensive set of tools for Vue.js development. The code snippets demonstrate the different approaches to accessing component information, with svelte-devtools using a more straightforward object structure and devtools-v6 implementing a recursive search for Vue instances.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Try the next iteration of Vue Devtools!
We have a brand new version of Devtools being developed at vuejs/devtools-next. It is now in beta, please help us test it out!
vue-devtools
Documentation | Install the extension
Monorepo
Package | Description |
---|---|
api | The public devtools API that can be installed in Vue plugins |
app-backend-api | Abstract API to link the Public API, the core and Vue handlers |
app-backend-core | The main logic injected in the page to interact with Vue apps |
app-backend-vue1 | Decoupled handlers to support Vue 1 (soon) |
app-backend-vue2 | Decoupled handlers to support Vue 2 |
app-backend-vue3 | Decoupled handlers to support Vue 3 |
app-frontend | Vue app displayed in the browser devtools pane |
shell-chrome | Chrome/Firefox extension |
shell-electron | Electron standalone app |
shell-host | Development environment |
shell-dev-vue2 | Demo app for development (Vue 2) |
shell-dev-vue3 | Demo app for development (Vue 3) |
Contributing
See the Contributing guide.
License
Sponsors
Top Related Projects
An extension that allows inspection of React component hierarchy in the Chrome and Firefox Developer Tools.
DevTools for Redux with hot reloading, action replay, and customizable UI
A browser extension to inspect Svelte application by extending your browser devtools capabilities
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot