Reputation: 18038
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?
Upvotes: 0
Views: 864
Reputation: 1354
This is how the Firebug(debugger) works, The best way to debug this is to set the breakpoint at your code and try to create the scenario which hits this breakpoint first and after that you can continue to the end (skipping the jquery code).
Upvotes: 0
Reputation: 25117
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.
Upvotes: 5