Home  >  Q&A  >  body text

javascript - Please tell me how to debug the js code after it is packaged and released to the production environment.

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.

高洛峰高洛峰2729 days ago637

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-19 10:16:59

    map file debugging

    reply
    0
  • Cancelreply