0

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 2

5

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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.
You can just step over these calls instead of stepping into them.
0

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).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.