Skip to content

Debugging Vue.js in WebStorm and in the browser (Chrome) #108

@nunoguedelha

Description

@nunoguedelha

The plugins integrated in the OpenMCT framework, and typically the imagery plugin we have to debug in #103 , are composed of multiple Vue.js projects, i.e. single file .vue files combining Javascript, HTML and CSS templates. Debugging such projects using the usual workflow based on the usage of breakpoints and step by step execution requires some additional settings in WebStorm or browser and in the openmct project settings when building the project itself. We address here how to build up such a setup.

References for the setup based on Chrome and WebStorm

https://www.digitalocean.com/community/tutorials/how-to-debug-components-state-and-events-with-vue-js-devtools
https://blog.jetbrains.com/webstorm/2018/01/working-with-vue-js-in-webstorm/
vuejs/vue-loader#620

Other References on the topic

https://v2.vuejs.org/v2/cookbook/debugging-in-vscode.html?redirect=true
https://cli.vuejs.org/guide/cli-service.html
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger
https://v2.vuejs.org/v2/cookbook/debugging-in-vscode.html?redirect=true
https://cli.vuejs.org/guide/cli-service.html
https://vuejs.org/guide/scaling-up/sfc.html#single-file-components
https://v2.vuejs.org/v2/cookbook/index.html
https://www.jetbrains.com/help/webstorm/vue-js.html

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions