javascript - Please tell me how to debug the js code after it is packaged and released to the production environment.
高洛峰
高洛峰 2017-05-19 10:14:59
0
1
602

For example, if you use webpack, add plug-in compression code and merge code, the packaged result is an app.js

  1. When we use packaging software such as webpack to compress and merge js and publish it to the production environment, how should we debug the code in the production environment?

    1.代码会被扰乱,所以没办法直接调试,即使用代理把文件映射到本地
    
  2. If we use the local dev debugging mode, it is not easy to simulate the real environment

So I would like to ask if you have any good debugging methods, thank you.

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
给我你的怀抱

map file debugging

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!