How to get firebug to break on exception?

前端 未结 4 2069
后悔当初
后悔当初 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条回答
  •  -上瘾入骨i
    2021-01-07 20:14

    Put a debugger; statement in your code or use the Script tab of firebug to click on a line number (which inserts a breakpoint).

    If you only want to do it when you throw an exception, you could put the debugger statement in a catch block.

提交回复
热议问题