Skip to content

Instantly share code, notes, and snippets.

@jonny-novikov
Last active September 1, 2018 01:27
Show Gist options
  • Save jonny-novikov/95cd9285ef474d1fbb126001449bf016 to your computer and use it in GitHub Desktop.
Save jonny-novikov/95cd9285ef474d1fbb126001449bf016 to your computer and use it in GitHub Desktop.
How to debug VueJS applications
// you can check dev/prod mode to enable/disable debug mode, then
// in your main file index.js or index.html insert following lines
if (typeof window !== "undefined" && window !== undefined) {
Vue.config.devtools = true;
Vue.config.debug = true;
// window.vue = new Vue(...); // optional you can expose new or existing main view model to global scope
window.Vue = Vue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment