开发者

What is a good way to trace javascript execution as it happens (but skip jQuery)?

I want to step th开发者_如何学运维rough a javascript as it happens, but skipping the steps where the functions are in jQuery.

Is there any way this can be done?


You can use Step Over when you are debugging. Step Over will simply go to the next line of code without going into the called method. This will make sure you don't go into jQuery method.

What you have probably been using is Step Into which goes to the next line of code that will be executed. This makes you go into the jQuery method when you are debugging.

In both Google Chrome and Firefox (with Firebug), the button Step Over and Step Into are right next to each other, just make sure you press the right one.


Using Firebug javascript trace you can "step over" function calls with F10, and "step out" of a function body with the proper icon, in case you accidentally entered a jQuery function.


Yes, use breakpoints.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜