1.关于源码调试的问题
按照教程操作,命令行执行指令下载代码:
git clone https://github.com/vuejs/core vue
接下来按照教程操作即可
2.关于项目调试的sourcemap映射问题:
今天总结来看,是路径问题,配置合适的路径项目即可启动:
{
"type": "pwa-chrome",
"request": "launch",
"name": "debug exampleclient ",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/exampleclient/app/src",//此处为launch.json所在的根目录+项目到src的目录
"breakOnLoad":true,
"sourceMaps": true,
"sourceMapPathOverrides": {
"meteor://💻app/*": "${workspaceFolder}/exampleclient/app/*",
"webpack:///./~/*": "${workspaceFolder}/exampleclient/app/node_modules/*",
"webpack://?:*/*": "${workspaceFolder}/exampleclient/app/*",
"webpack:///src/*":"${webRoot}/exampleclient/app/*"
}
}