公司项目不方便截图,
PS: 用的是浏览器的 breakpoints 不是 debugger
1.断点 index.js 行 33,实际执行的时候断点显示在 index.js 行 99
2.断点 fn 的 if(state), 返回的 Scope 都是混淆后的 e 和实际看到的对不上
3.断点 fn 的 if(state), 返回的 Scope 能看到,到 Console 里面输出显示 state is not defined
感觉像是 webpack 打包的问题,
1,2 是不是 hashname 或者 hash 的混淆级别的问题,还勉强能用
3 的话我真的没有一点思路,线上调试是一点也用不了
你看看webpack正式环境配置是不是存在以下配置这个配置nosources-source-map或者hidden-source-map
你换成eval-source-map就行了