How can I debug a minified JS in firebug?

后端 未结 7 712
执念已碎
执念已碎 2020-12-23 09:25


I have a web page which includes insane amount of minified JS files. The web page works perfectly fine on my local network but throws some JS error on staging. There is

7条回答
  •  鱼传尺愫
    2020-12-23 09:46

    Consider a Change!

    Firefox w/ Firebug was my favorite JavaScript debugging method for almost a year, but I've recently moved to Google-Chrome's Developer-Tools which is far more superior.

    • Chrome supports an On-The-Fly (built-in feature) beautification of JavaScript resources enter image description here

    • Once beautified, you are free to debug the JavaScript resource file, as it was "natively" downloaded beautified from the web-server. Breaking-points are set by clicking the line number. enter image description here

    • One of the most extremely powerful feature,
      Is once You've Stopped In A Breaking-point, You Are Free To Execute Commands (using console) In The Same Scope You ARE In The Breaking-point. In Firefox you can't do that. enter image description here Its so easy to debug (even anonymous functions), You'll never be back to Firefox.
      Try It!

提交回复
热议问题