晨港飞燕刘彦登

编程技术

首页 归档 关于 联系

📢 欢迎来到我的博客!这里主要分享编程技术相关内容,如有问题欢迎留言讨论~

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 @ 2021-04-25 16:40  晨港飞燕刘彦登  阅读(20)  评论(0)    收藏  举报  来源