How can I find a real error in my files?

I wrote a program and want to debug it with firebug. But firebug always tells me that something is wrong with my library files like jquery, which is not at all the root of the problem. It shows the following:

((f.event.special[s.origType] || {}).handle || s.handler).apply is not a function

...{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAt...     jquery....min.js (line 3)

I know that there must be something wrong with my program. But how can I find the real error in my files?

+3
source share
2 answers

Place a breakpoint on the jQuery line where the error occurs, and open the call stack until it pops up with your code (which is likely to call the jQuery method with the wrong argument types, etc.).

+2
source

enter image description here

From @alex's answer, here's how to use a breakpoint.

, . F10 . 10 . . , .

0

All Articles