如何通过压缩的javascript文件进行调试? [英] How do you debug through a compressed javascript file?
本文介绍了如何通过压缩的javascript文件进行调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
简单的答案是你不要调试通过压缩文件 - 您使用未压缩版本进行开发。
I'm using django-compress to shrink my javascript files. However, I am now having trouble debugging through it because everything is squished. I believe stackoverflow use some kind of js compression too. How do you go about to debug through your javascript on the live site or on your dev machine with the code well formatted? Firebug has all the code in one line which makes it hard to dig through.
解决方案
The simple answer is you don't debug through a compressed file - you use an uncompressed version for development.
这篇关于如何通过压缩的javascript文件进行调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文