晨港飞燕的博客

Vue使用debugger

vue开发时会遇到需要调试代码的情况,使用debugger可以很方便的进行debug.

1.找到eslintConfig文件

  "rules": {
      "no-async-promise-executor": "off",

      "no-unused-vars": "off",

      "comma-dangle": "off",

      "no-debugger": "off" 

    }

 

 

2.build/webpack.dev.conf.js

将devtool: '#cheap-module-eval-source-map',改为devtool: '#eval-source-map ',


 

devtool介绍:

https://webpack.js.org/configuration/devtool/#development

webpack——devtool配置及sourceMap的选择

webpack——devtool里的7种SourceMap模式

 

 

 

重启vue,

 

 

 

参考:

https://blog.csdn.net/xyx107/article/details/104396772

https://blog.csdn.net/qq_23064501/article/details/112621440

 

 

 

 

 

 

 


 

posted @   晨港飞燕刘彦登  阅读(8)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示