debugging Metronic 8 (Vue) in visual studio code
I'm not having much luck trying to debug Metronic 8 for Vue in Visual Studio Code, which is really slowing down development. Could someone please share their working launch.json or anything else the needed to change to get debug to function properly?
Here is what I currently have which doesn't quite work.
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "vuejs: chrome",
"url": "
"webRoot": "${workspaceFolder}/src",
"breakOnLoad": true,
"sourceMapPathOverrides": {
"webpack:///./src/*": "${webRoot}/src/*",
"webpack:///./src/*.vue": "${webRoot}/*.vue",
"webpack:///./src/*.ts": "${webRoot}/*.ts"
}
},
]
} I've also tried with Firefox with similar results
{
"type": "firefox",
"request": "launch",
"name": "vuejs: firefox",
"url": "
"webRoot": "${workspaceFolder}/src",
"pathMappings": [
{ "url": "webpack:///./src/",
"path": "${webRoot}/"
}
],
}, Here is my vue.config.js
module.exports = {
publicPath:
process.env.NODE_ENV === "production" ? "/dist/" : "/",
}; and webpack-rtl.config.js is unmodified.
Thanks!
Replies (1)
Hi,
Unfortunately, we haven't tried to debug Metronic in Visual Studio Code, we will consider it in upcoming releases.
For now to debug the Vue application you can use chrome dev tools.