【问题标题】:How to debug in developer tools when scripts compiled with jawr?使用jarr编译脚本时如何在开发人员工具中调试?
【发布时间】:2014-11-26 19:50:29
【问题描述】:

在本地运行我的项目时,或者如果它在生产环境中运行,jawr 会压缩我的 javascript 文件,因此当我运行开发人员工具并尝试调试这些文件时,我只能查看压缩文件。如何制作它以便我可以查看原始的、未压缩的 javascript 文件?

【问题讨论】:

    标签: javascript debugging developer-tools jawr


    【解决方案1】:

    jawr相关的调试和生产模式的信息可以找到here

    来自链接:

    While running in production mode, you may view your bundles in debug mode by using jawr.debug.overrideKey. This can be very helpfull when you need to debug issues in a production environment. Simply append overrideKey=(jawr.debug.overrideKey value) to the end of the url. Now your production bundles will be exploded; but only for that request. You may also view individual css and js files by adding the overrideKey to the end of the request.

    因此,为了在生产环境或本地进行调试,您需要将 overrideKey=debug 添加到您的网址末尾。

    url.com/something?overrideKey=debug

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-04
      • 1970-01-01
      • 1970-01-01
      • 2011-10-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多