Can I tell the Chrome script debugger to ignore jquery.js?

后端 未结 6 788
一向
一向 2020-12-13 23:03

Is there a way to tell the Chrome debugger (or maybe Firebug?) to not break within certain files? To assume they\'re not broken, essentially? This seems like something they

6条回答
  •  隐瞒了意图╮
    2020-12-13 23:40

    If the debugger is blowing up somewhere in the jQuery files, you could potentially wrap the suspect calls in a try/catch and then throw an error in your own catch. That way, you can isolate exactly where your're going wrong.

    I would be more inclined to do stack traces to see why my code is blowing up, e.g. invalid JSON, than to try gloss over it.

提交回复
热议问题