How to get firebug to break on exception?

前端 未结 4 2071
后悔当初
后悔当初 2021-01-07 19:28

I\'m using Firebug 1.5.4. When I reference an undefined variable or some such, it breaks right where the problem occurs, and throws me into the debug view where I can see t

4条回答
  •  执念已碎
    2021-01-07 20:11

    The respondent was helpful but neglected something very key I was missing; the window.onerror event. Here is the full code:

     window.onerror = function(msg) {
       debugger;
     }
    

提交回复
热议问题