How do I "step over" jQuery code while debugging?
Posted
by Scott Rippey
on Stack Overflow
See other posts from Stack Overflow
or by Scott Rippey
Published on 2010-05-21T19:36:36Z
Indexed on
2010/05/21
19:40 UTC
Read the original article
Hit count: 140
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 debugging jQuery, just my own file.
Are there any ways to tell a debugger to not step into the jQuery file? I use Visual Studio + Internet Explorer, as well as Firefox + Firebug for stepping through code ... and both seem to love to step through dozens of jQuery statements.
For example, say I have a script like this:
$("div").each(function() {
$(this).hide();
});
I would like to press "step into" and not see the implementation of ".each()" etc...
In C#, this is possible by using the [DebuggerStepThrough()] attribute on a class. But that doesn't help with JavaScript.
© Stack Overflow or respective owner