How to ignore certain script files / lines when debugging?

前端 未结 6 1320
南方客
南方客 2020-12-31 11:56

I\'m trying to debug some JavaScript, I want to find out what code gets executed when I hover over a certain div element (I\'ve got no idea which bit of code, because there\

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 12:31

    You might want to take a look at Paul Irish's Re-Introduction to the Chrome Developer Tools, in particular the Timeline section (starts around 15 minutes into the video.)

    You can start recording all javascript events - function executions (with source lines etc) and debug based on what events fired. There are other really handy debugging tools hiding in that google IO talk that can help you solve this problem as well.

提交回复
热议问题