VSCode如何设置Vue前端的debug调试

04-01 阅读 0评论

vscode在调试vue.代码时,如何进行debug?

VSCode如何设置Vue前端的debug调试,VSCode如何设置Vue前端的debug调试,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,安装,设置,前端,第1张
(图片来源网络,侵删)

1.安装Chrome Debug插件。

VSCode如何设置Vue前端的debug调试

2.在launch.json中,将url修改成你前端项目的路径:

VSCode如何设置Vue前端的debug调试

  1 {
  2   // Use IntelliSense to learn about possible attributes.
  3   // Hover to view descriptions of existing attributes.
  4   // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5   "version": "0.2.0",
  6   "configurations": [
  7     {
  8       "type": "chrome",
  9       "request": "launch",
 10       "name": "Chrome 调试",
 11       "url": "http://localhost:8090/#/login",
 12       "webRoot": "${workspaceFolder}/src",
 13       "breakOnLoad": false,
 14       "sourceMapPathOverrides": {
 15         "webpack:///src/*": "${webRoot}/*"
 16       }
 17     }
 18   ]
 19 }

3.vue-cli2版本的,修改config/index.js中配置:

VSCode如何设置Vue前端的debug调试

VSCode如何设置Vue前端的debug调试,VSCode如何设置Vue前端的debug调试,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,安装,设置,前端,第5张
(图片来源网络,侵删)

完成以上配置,重启项目,打上断点即可。

VSCode如何设置Vue前端的debug调试

VSCode如何设置Vue前端的debug调试

VSCode如何设置Vue前端的debug调试,VSCode如何设置Vue前端的debug调试,词库加载错误:未能找到文件“C:\Users\Administrator\Desktop\火车头9.8破解版\Configuration\Dict_Stopwords.txt”。,安装,设置,前端,第8张
(图片来源网络,侵删)

免责声明
本网站所收集的部分公开资料来源于AI生成和互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,人围观)

还没有评论,来说两句吧...

目录[+]