Debugging jQuery with Firebug

后端 未结 4 1298
悲哀的现实
悲哀的现实 2021-02-07 02:06

I\'ve seen a ton of old posts out there on how to try to debug jQuery in Firebug. Anyone have a good way yet cause I do not see one at all that works.

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-07 02:24

    First, make sure that you're not using the minimized or packed version of jQuery. That would be virtually impossible to debug. Next, I find that it helps to step through at least once so that you know where to set breakpoints in the jQuery code. You may also want to break the chaining of any jQuery statements in your code and assign the intermediate results to variables that you can inspect. Other than that, I'm with @Chad. I haven't had a lot of problems debugging my jQuery-based code.

提交回复
热议问题