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": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"breakOnLoad": true,
"sourceMapPathOverrides": {
"webpack:///./src/*": "${webRoot}/src/*",
"webpack:///./src/*.vue": "${webRoot}/*.vue",
"webpack:///./src/*.ts": "${webRoot}/*.ts"
}
},
]
}
{
"type": "firefox",
"request": "launch",
"name": "vuejs: firefox",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"pathMappings": [
{ "url": "webpack:///./src/",
"path": "${webRoot}/"
}
],
},
module.exports = {
publicPath:
process.env.NODE_ENV === "production" ? "/dist/" : "/",
};
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.
https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg?hl=en