Can I “step over” just jQuery code while debugging?

后端 未结 5 1093
陌清茗
陌清茗 2021-01-31 17:27

While stepping through a script that uses jQuery, I just want to test the code I wrote. I don\'t want to step into the jQuery file -- I\'m not

5条回答
  •  名媛妹妹
    2021-01-31 18:21

    Yes you can

    At least in FireFox (25+) and Chrome (30+).

    In FireFox this feature is called "Black boxing" and will be available with FireFox 25. It let's do exactly what you where looking for:

    Nick Fitzgerald and Chris Heilmann: "New Features of Firefox Developer Tools: Episode 25"

    This feature was also introduced to Chrome (v30+) although it's tougher to find/configure. It's called "skip through sources with particular names" and Collin Miller did an excellent job in describing how to configure it:

    Collin Miller: "Tips and Tricks: Ignoring library code while debugging in Chrome"

    I'm using it in Chrome right now. It works like a charm and saves me so much time.

提交回复
热议问题