How prevent a debugger (Firebug or PhpStorm in this case) from step in jQuery and its plugins source code and just step over our own code?
2 Answers
JavaScript debuggers have no way to determine the difference between your code and someone else's code. You're best option is to either set breakpoints before & after the blocks of code you want to skip (say a jQuery selector) so you can use the debuggers Continue feature to skip that external code.
Alternatively you can use the debugger statement to programmatically stop at points in the code.
2 Comments
Real Dreams
I need a way to force debugger to not step into $() function. (a firebug hack, a plugin, or other ways). It should not be so hard. Selectors are scattered over entire code, seting breakpoints before & after the blocks of code is cumbersome.
ThiefMaster
You can just step over these calls instead of stepping into them.